Contrast checker

Check WCAG AA and AAA contrast compliance for any two colors instantly.

Last updated June 2026

Did you know?

WCAG AA requires a 4.5:1 contrast ratio for normal text and 3:1 for large text. AAA requires 7:1. Pick your text and background colors above to check compliance instantly.

Sample heading text
This is what body text looks like at this contrast ratio.
11.7:1
Contrast ratio

What is WCAG contrast ratio?

WCAG contrast requirements explained

For normal text (under 18pt): AA requires 4.5:1, AAA requires 7:1.

For large text (18pt+ or 14pt+ bold): AA requires 3:1, AAA requires 4.5:1.

For UI components (buttons, inputs, icons): AA requires 3:1.

Frequently asked questions

What contrast ratio do I need for my website?

WCAG AA (4.5:1 for normal text) is the standard requirement and is legally mandated in many jurisdictions. Aim for AAA (7:1) for the best accessibility.

Does contrast affect SEO?

Not directly, but poor contrast hurts user experience. High bounce rates from inaccessible content can indirectly affect rankings.

What is the contrast ratio formula?

(Lighter relative luminance + 0.05) ÷ (Darker relative luminance + 0.05). Maximum is 21:1 (black on white). Minimum meaningful contrast starts around 3:1.

Frequently asked questions

WCAG AA (4.5:1 for normal text, 3:1 for large text) is the standard. It is legally required in many countries for public-facing websites.

Web Content Accessibility Guidelines — the international standard for making web content accessible to people with disabilities.

Not directly, but poor contrast drives up bounce rates, which can indirectly hurt rankings.