Colour Contrast Checker (WCAG)
Enter a text colour and a background colour to see their contrast ratio and whether the pair passes WCAG AA and AAA. If it fails, Galham suggests the nearest colour that passes.
Normal text: the quick brown fox jumps over the lazy dog.
Large text: 24px bold heading
| Check | Normal text | Large text |
|---|---|---|
| AA | ||
| AAA | ||
| Buttons, icons, borders | ||
WCAG 2.2 contrast thresholds
| Level | Normal text | Large text | Buttons, icons, borders |
|---|---|---|---|
| AA | 4.5:1 | 3:1 | 3:1 |
| AAA | 7:1 | 4.5:1 | — |
The ratio runs from 1:1 (no contrast at all) to 21:1 (black on white).
Common questions
What contrast ratio passes WCAG AA?
At least 4.5:1 for normal body text and 3:1 for large text. Buttons, form borders and meaningful icons also need 3:1 against what's behind them.
What counts as large text?
In WCAG, large text is at least 18pt (24px) regular, or 14pt (about 18.7px) bold.