Galham › Contrast checker

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.

CheckNormal textLarge text
AA
AAA
Buttons, icons, borders

WCAG 2.2 contrast thresholds

LevelNormal textLarge textButtons, icons, borders
AA4.5:13:13:1
AAA7:14.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.

Keep going with this colour

More Galham tools