🌓 Colour contrast checker

Check whether text is readable on its background with the WCAG 2.2 contrast ratio for normal and large text.

Contrast

7.57 : 1

Good for body text

Large heading

Normal text looks like this on your background.

Normal text, AA (4.5)
Pass
Large text, AA (3)
Pass
Buttons, icons and borders (3)
Pass
Normal text, AAA (7)
Pass
Large text, AAA (4.5)
Pass

How it is worked out

  • Turn each colour channel into a light value, then L = 0.2126 R + 0.7152 G + 0.0722 B.
  • Contrast = (lighter L + 0.05) ÷ (darker L + 0.05).
  • The result runs from 1 (the same colour) to 21 (black on white).

Example

Text colour: #475569; Background colour: #ffffff.

Contrast: 7.57 : 1 (Good for body text). Normal text, AA (4.5): Pass; Large text, AA (3): Pass; Buttons, icons and borders (3): Pass; Normal text, AAA (7): Pass.

Source: W3C, WCAG 2.2, contrast (minimum).

Useful next

Frequently asked questions

What contrast do I need?

WCAG 2.2 level AA asks for 4.5 : 1 for normal text and 3 : 1 for large text.

What counts as large text?

18 point (24 px) and above, or 14 point (about 18.7 px) and above in bold.

Do logos need to pass?

No. Logos and decoration are exempt, and so are buttons that are switched off.

More calculators like this