Skip to content

WCAG contrast checker

Check that your text and background colors meet the WCAG accessibility standards.

Colors to test

Background color
Text color (foreground)

Large text (18pt or 14pt bold)

This is a preview of normal text. Readability depends heavily on the contrast between these two colors. Try different shades of gray to see the difference.

Contrast ratio

{{ contrastRatio }} : 1
AA level Normal text (≥ 4.5:1)
{{ passesAANormal ? 'Pass' : 'Fail' }}
AA level Large text (≥ 3.0:1)
{{ passesAALarge ? 'Pass' : 'Fail' }}
AAA level Normal text (≥ 7.0:1)
{{ passesAAANormal ? 'Pass' : 'Fail' }}
AAA level Large text (≥ 4.5:1)
{{ passesAAALarge ? 'Pass' : 'Fail' }}

What are the WCAG standards?

The WCAG (Web Content Accessibility Guidelines) are a set of international guidelines designed to make web content accessible to everyone, including people with visual disabilities (color blindness, low vision, age-related vision decline). In France, these standards are implemented in the RGAA (Référentiel Général d’Amélioration de l’Accessibilité, the French general accessibility improvement framework), which is mandatory for public sites and large companies.

How is the contrast ratio calculated?

The contrast ratio measures the difference in relative luminance between two colors (the text and its background). The scale runs from 1:1 (no difference, for example white text on a white background) to 21:1 (maximum contrast, black text on a white background).

What do the AA and AAA levels mean?

  • AA level: This is the standard targeted by 99% of websites. To pass "AA", normal-size text must have a ratio of at least 4.5:1. For large text (over 18pt, or 14pt bold), a ratio of 3.0:1 is enough.
  • AAA level: This is the strictest accessibility level (often required for certain government sites). It requires a ratio of 7.0:1 for normal text, and 4.5:1 for large text.

More UI design tools:

How it works

How to use the WCAG contrast checker

Check that your text and background colors meet the WCAG accessibility standards.

  1. Text color

    Enter the text color.

  2. Background color

    Enter the background color.

  3. Read the result

    Contrast ratio and AA / AAA compliance.

FreeNo subscription, no hidden limits.
No sign-upOpen the page and use the tool. That’s it.
InstantResults in seconds, on mobile too.
PrivateEverything runs in your browser.

About the WCAG contrast checker

Sufficient contrast makes a site readable for everyone, especially people with low vision. Level AA requires a ratio of 4.5:1 for normal text and 3:1 for large text.

wcag contrast checker color contrast checker contrast ratio calculator accessibility color checker wcag aa contrast text background contrast web accessibility contrast
FAQ

Frequently asked questions about the WCAG contrast checker

Which ratio should I aim for?

At least 4.5:1 for body text (AA), and 7:1 for level AAA.

What counts as “large text”?

Text of at least 24 px, or 18.66 px in bold. It needs a ratio of 3:1 at AA.

Is contrast mandatory?

For public websites in France, the RGAA relies on the WCAG criteria.

How do I fix insufficient contrast?

Darken the text or lighten the background until you reach the ratio.

Esc
↑ ↓ navigateEnter open