Design tool

Color Contrast Checker

Check text and background colors against WCAG accessibility contrast requirements.

The quick brown fox jumps over the lazy dog
—Contrast ratio
—AA (normal text)
—AAA (normal text)
—AA (large text)

What the levels mean

WCAG AA requires a 4.5:1 ratio for normal text (3:1 for large text, 18pt+ or 14pt+ bold) — the baseline most sites should meet. AAA requires 7:1 for normal text, a stricter standard for higher-accessibility needs.

About the Color Contrast Checker

The Color Contrast Checker measures the contrast ratio between a text colour and a background colour and tells you whether it meets the Web Content Accessibility Guidelines (WCAG) levels AA and AAA. Good contrast makes text readable for people with low vision, colour blindness or glare on a screen.

The contrast ratio runs from 1:1 (identical colours) to 21:1 (black on white). WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text (about 18 pt or 14 pt bold). AAA requires 7:1 for normal text and 4.5:1 for large text. The ratio is calculated from the relative luminance of each colour.

How to use it

  1. Enter the foreground colour as HEX.
  2. Enter the background colour.
  3. Read the ratio and the pass or fail for each level.
  4. Adjust either colour until you pass.

Tips and good to know

Frequently asked questions

What ratio should I aim for?

At least 4.5:1 for body text.

Does it work for images of text?

You can test the colours but images need separate review.

Is passing AA legally required?

Many laws and policies reference WCAG AA; check what applies to you.