⚡ Tooldeck

🎨 Color Contrast Checker (WCAG)

Make sure your text is readable for everyone. Test any two colors against WCAG accessibility standards and get a passing alternative.

Large heading text
Normal body text looks like this. The quick brown fox jumps over the lazy dog.
–Contrast ratio
–AA normal text (4.5:1)
–AA large text (3:1)
–AAA normal text (7:1)
–AAA large text (4.5:1)

How to use the Color Contrast Checker

  1. Enter or pick your text color and background color (hex values like #1a2b3c).
  2. Read the contrast ratio and the pass/fail results for each WCAG level.
  3. If a check fails, use the suggested text color that keeps your hue but passes AA.

Frequently asked questions

What contrast ratio does WCAG require?

WCAG 2.2 level AA requires at least 4.5:1 for normal text and 3:1 for large text. Level AAA requires 7:1 for normal text and 4.5:1 for large text.

What counts as large text?

Text that is at least 24px (18pt) regular, or at least 18.66px (14pt) bold.

How is the contrast ratio calculated?

It is (L1 + 0.05) / (L2 + 0.05), where L1 and L2 are the relative luminance of the lighter and darker colors, computed from linearized sRGB values.

Why does color contrast matter?

Low contrast is one of the most common accessibility failures. Good contrast helps people with low vision, color blindness, and anyone reading on a phone in sunlight.

More free tools