Instant • private • accessibility

Color Contrast Checker

Enter a text and background color to see the exact WCAG contrast ratio and whether it passes AA or AAA.

Large text preview AaThis is how normal body text looks with the current color pair.
21.00:1WCAG contrast ratio
AA normal text
AA large text
AAA normal text
AAA large text

🔒 Colors are checked locally and never uploaded.

Make sure your text is readable for everyone

WCAG contrast guidelines exist so text stays legible for people with low vision or color blindness. Enter any two CSS colors to see the exact ratio and instantly know whether the pairing is accessible for normal and large text at both AA and AAA levels.

Live preview

See exactly how the pairing looks on real sized text before you commit to it.

All CSS color formats

Enter hex, rgb(), hsl() or named CSS colors in either field.

Private by design

The contrast ratio is calculated entirely in your browser.

Color contrast checker FAQ

What contrast ratio do I need for WCAG AA?

WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold and larger).

What about WCAG AAA?

WCAG AAA is stricter, requiring at least 7:1 for normal text and 4.5:1 for large text.

How is the contrast ratio calculated?

It uses the relative luminance of each color as defined by WCAG 2.1, then compares the lighter and darker luminance in a standard ratio formula.

Can I use color names or HSL?

Enter any valid CSS color, including hex codes, rgb(), hsl() or named colors like tomato.