WCAG Color Contrast Checker

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

Try:
0:1

Large text sample

Normal text sample: the quick brown fox jumps over the lazy dog.

WCAG checkMinimum ratioResult
AA normal text4.5:1
AAA normal text7:1
AA large text (24 px, or 19 px bold)3:1
AAA large text4.5:1
AA icons and input borders3:1

What do the results mean?

The contrast ratio compares how bright two colors are. It runs from 1:1 (no contrast) to 21:1 (black on white). The Web Content Accessibility Guidelines (WCAG) set minimum ratios so that people with low vision or in bright light can read your text.

  • AA, normal text: at least 4.5:1. This is the common target for body text.
  • AA, large text: at least 3:1. Large means 24 px or bigger, or 19 px bold.
  • AAA: a stricter level of 7:1 for normal text and 4.5:1 for large text.
  • Icons and input borders: at least 3:1 against their surroundings.

Want the full explanation? Read our guide to the WCAG contrast ratio.

Contrast checker FAQ

What is a good contrast ratio?

For body text, 4.5:1 is the minimum for WCAG AA and 7:1 or more is comfortable for most people. Very high ratios are not harmful, but pure white on pure black can feel harsh on long reads.

Does dark mode need contrast checking too?

Yes. Light text on a dark background must meet the same ratios. Use the Dark mode preset above to see a pair that passes comfortably.

How is the ratio calculated?

Each color is converted to relative luminance and the ratio is (lighter + 0.05) divided by (darker + 0.05), as defined by WCAG. The result is never rounded up, so a value just under a limit shows as failing.

Are my colors saved anywhere?

No. The calculation runs in your browser and nothing is sent or stored.

Read comfortably on every website

Dark Mode Night Reader adds dark mode, sepia, a blue light filter and text tools to Chrome. Free, light and private.