Free on iOS

Color Contrast Checker for WCAG

Text is only readable when it stands out enough from its background, and the Web Content Accessibility Guidelines put a number on enough. A contrast check compares two colors and tells you whether the pair passes, so you can fix it before anyone struggles to read it.

Quick answer

Normal text needs a contrast ratio of at least 4.5:1 against its background to pass WCAG level AA, and 7:1 for AAA; large text and interface elements such as icons and borders need 3:1. In Color Identifier, open a color and its accessibility section shows the ratio against white, grey and black backgrounds with AA and AAA pass or fail. The contrast check is part of Pro.

What the contrast ratio means

The ratio compares the relative luminance of two colors, from 1:1 for identical colors to 21:1 for black on white. It ignores hue and looks only at how light or dark each color is, which is why a red and a green of similar brightness can look different but still fail.

The ratio is the same whichever color is the text and whichever is the background, so you only need the two values.

The thresholds that matter

WCAG level AA, the level most organisations aim for, asks for 4.5:1 for normal text and 3:1 for large text. Large text means at least 24 pixels regular, or about 18.7 pixels bold. Level AAA raises this to 7:1 and 4.5:1. Non-text elements that people need to see, such as input borders, icons and focus indicators, need 3:1 against what surrounds them.

Passing is a minimum, not a guarantee of comfort. Thin fonts, small sizes and busy backgrounds can still be hard to read at 4.5:1.

Checking colors from a real design

The app checks a color against standard backgrounds: white, light grey, grey, dark grey and black. That covers the most common question, whether a text or icon color works on a light or a dark surface, and it shows a text, button and icon preview. It does not compare two arbitrary colors, so for a pair of custom brand colors use a two-color checker or your design tool's contrast feature as well.

Take the colors from a screenshot of the actual screen rather than from a design file: shadows, transparency and images behind text change the color people really see. Pick inside solid areas, not on the anti-aliased edges of letters, and check every state that matters, including hover, disabled, error and dark mode.

Fixing a pair that fails

Change lightness, not hue. Darken the text or lighten the background in small steps and check again until the ratio clears the threshold; the colors keep their character while gaining contrast. In the app, Adjust's HSB sliders change brightness alone and save the result as a new color you can check again.

If a brand color is too light for text on white, keep it for large headings, buttons with dark text, or decorative elements, and use a darker shade of the same hue for body text.

Contrast is not the only rule

Do not use color alone to carry meaning. Error states, links and charts should also have an icon, an underline, a label or a pattern, so someone who cannot tell two colors apart still understands the message. Naming the colors in a legend helps as well.

Frequently asked questions

What contrast ratio do I need for WCAG AA?

4.5:1 for normal text and 3:1 for large text and for user-interface elements such as icons and input borders.

What counts as large text in WCAG?

At least 24 CSS pixels in regular weight, or about 18.7 pixels in bold. Everything smaller is normal text.

Does white text on a brand blue pass?

It depends on how dark the blue is. Check the exact pair: mid blues often pass only for large text, while darker blues pass for body text.

Can I check two custom colors against each other in the app?

No. The app checks a color against white, grey and black backgrounds. For two custom colors, use a two-color contrast checker alongside it.

Does contrast depend on which color is the text?

No. The ratio is the same either way round; only the two colors matter.

Color Contrast Checker for WCAG

Download Color Identifier App to check color contrast for accessibility with your iPhone camera or photos.

Download on the App Store - Free