Contrast Check
Heading
Body text, 15px.
Small print, 12px.
ButtonContrast ratio
5.38:1
Good
| Element | WCAG AA | WCAG AAA |
|---|---|---|
| Normal textUnder 24px | 4.5:1 | 7:1 |
| Large text24px+ or bold 18.5px+ | 3:1 | 4.5:1 |
| UI componentsBorders, icons | 3:1 | No AAA level |
How it works and FAQ
How it works
- Enter a text color and a background color as HEX or RGB, or use the pickers.
- Read the ratio and the pass or fail result for each WCAG level.
- If a level fails, apply the suggested color. It keeps your hue and changes only lightness.
Questions
What ratio do I need?
WCAG 2.2 AA asks for 4.5:1 for normal text and 3:1 for large text (24px, or about 18.5px bold) and for UI components such as input borders. AAA asks for 7:1 and 4.5:1.
Is 4.49:1 a pass?
No. WCAG thresholds are not rounded. This checker compares the unrounded value, so a ratio displayed as 4.49 fails AA.
Does passing contrast make text readable?
It is the minimum. Font weight, size, line length and the surrounding layout all matter too, and WCAG 2 contrast is known to under-rate some dark-mode combinations.
Related: Palette Studio, Chart Colors, Image to Palette