Free tool

Check the color contrast in any screenshot.

Pick two colors from a screenshot. Get the WCAG 2.2 result, the nearest passing color and a color blindness preview.

The checker

How the checker works

  1. Add a screenshot

    Drop it on the page, paste it or choose a file. The browser reads it on the page itself; nothing is uploaded.

  2. Pick the two colors

    Click a letter and its background. The loupe shows single pixels, so you can pick from the middle of a stroke instead of its blurred edge.

  3. Or let it find them

    The checker lists the main colors and the pairs that sit next to each other, worst contrast first, and marks where each pair appears.

  4. Read the result

    Pass or fail for normal text, large text and interface parts, with the nearest lighter or darker color that passes.

Questions

What do 4.5:1 and 3:1 mean?

WCAG 2.2 asks for a contrast ratio of at least 4.5:1 between normal text and its background, and 3:1 for large text (success criterion 1.4.3).

Interface parts that people need to see, such as input borders, icons and focus indicators, need 3:1 against what is next to them (1.4.11). The enhanced level, AAA, asks for 7:1 for normal text.

What counts as large text?

Text at least 24 CSS pixels (18 point), or at least about 18.66 CSS pixels (14 point) and bold. Most body text is not large text.

Why does a pair at 4.49:1 fail?

WCAG thresholds are exact. The checker cuts each ratio to two decimals instead of rounding it, so any ratio shown as 4.50:1 or higher meets 4.5:1.

Why pick from the middle of a letter?

The pixels at the edge of a letter mix the text color with the background, so they are lighter or darker than either. The loupe shows each pixel, so you can pick a pixel from the thick part of a stroke. The automatic color list leaves those mixed pixels out.

Use a PNG screenshot when you can. JPEG compression changes the colors around text.

How is the nearest passing color chosen?

It keeps the color's hue and saturation and changes only its lightness, to the nearest lighter or darker shade that reaches the target. Check the new shade against your brand guidelines before you use it.

Does my screenshot leave my computer?

No. The image is read and drawn on this page in your browser. Nothing is uploaded, and nothing is kept after you close the tab.

A link made with Copy link carries the two colors, after the # sign, which browsers do not send to servers.

What about APCA?

APCA is a newer way to measure contrast, under research for a future WCAG 3. It is a draft, not a standard.

Section 508 (WCAG 2.0), the ADA Title II rule (WCAG 2.1) and WCAG 2.2 all use the ratios on this page, so the checker does not show APCA scores.

How does the color blindness preview work?

It recolors every pixel with the simulation of Machado, Oliveira and Fernandes (2009) for complete protanopia, deuteranopia and tritanopia, and keeps only luminance for achromatopsia. It runs in your browser like the rest of the checker.

A simulation is an approximation: color vision varies from person to person. Use it to find places where color alone carries meaning, such as a red error next to a green success.

If every pair passes, is my site accessible?

No. Contrast is one check among many, and the colors on a real page depend on how they are used.

Run the free website audit

Contrast is one check of many.

The free website audit checks a whole page for contrast, form labels, image descriptions and more, and lists what to fix.