Home/Contrast Checker (WCAG)

Contrast Checker (WCAG)

Test the readability of your text and background colors against WCAG 2.2 AA / AAA rules. See the contrast ratio, and we'll suggest the closest passing color for those that fail.

–
contrast ratio
Normal text · AA (4.5:1)
Normal text · AAA (7:1)
Large text · AA (3:1)
Large text · AAA (4.5:1)
UI components / icons (3:1)

Preview

Large heading text (24px bold)

This is normal-sized paragraph text. Readability matters especially for long text, users with low vision and phone screens in sunlight.

Small text · footnote, form hint or date info.

Sample button

Suggestions

The closest colors that pass AA and AAA, with only lightness changed and the hue kept. Click to apply.

Frequently Asked Questions

What are WCAG AA and AAA?

WCAG is the international standard for web accessibility. Level AA is the minimum most regulations require (e.g. the European Accessibility Act): at least 4.5:1 contrast for normal text and 3:1 for large text. AAA is stricter: 7:1 and 4.5:1.

What counts as "large text"?

Text at least 24px (18pt) in normal weight or at least 18.66px (14pt) in bold counts as large text.

How is the contrast ratio calculated?

The relative luminances (L) of the two colors are calculated and the formula (lighter + 0.05) / (darker + 0.05) is applied. The result is between 1:1 (same color) and 21:1 (black and white).