LocalOps Studio free browser tools

How-to guide · ColorGuard

How to check WCAG color contrast

Low contrast is one of the most commonly flagged accessibility failures and one of the easiest to fix before launch. This guide explains the WCAG thresholds in plain language and the two-minute check that keeps your text readable for everyone.

Updated 2026-10-25 Local-first No upload

What the WCAG thresholds actually mean

Contrast ratio is a single number between 1:1 (same color) and 21:1 (black on white), computed from the relative luminance of the two colors. You do not need to compute it by hand - a contrast checker does it instantly.

  • AA for normal text - minimum contrast 4.5:1
  • AAA for normal text - enhanced level, 7:1
  • Large text (24 px regular, or 18.66 px bold) - needs only 3:1

The failures that show up again and again

Gray-on-gray text in modern UI themes, brand colors chosen for vibrancy rather than legibility, and white text on brand-tinted buttons are the three classics. Each looks fine on a designer's calibrated monitor and fails for everyone else.

A contrast checker names the problem immediately: the ratio, the failing threshold, and the closest compliant color you can swap in.

The two-minute check before you ship

  1. Collect the color pairs that carry meaning: body text, buttons, links, badges, placeholders.
  2. Check each pair against AA and AAA for normal text, and 3:1 for large text.
  3. For every failing pair, apply the suggested compliant color and re-check.
  4. Re-test after any theme or brand color change - this is where regressions hide.

Common contrast mistakes

Teams often check the logo colors and stop there. The failures that reach users are usually body text at a small size, light gray placeholder text, a focus ring that disappears on a white background, and a disabled button that looks nearly identical to an enabled one.

Text over images is another gap. A single color pair cannot describe a photograph; the worst-case area of the image is the one that matters. Use a solid overlay or a text background when the image is busy, and test dark mode separately.

Pre-flight checklist

  • Body text at the shipped size and weight.
  • Buttons, links, and form labels.
  • Focus rings against every background.
  • Error and status messages that do not rely on color alone.
  • Light and dark mode separately.
  • Charts and icons that carry meaning.
Try it free - ColorGuard

Check WCAG color contrast in one click

Open the tool

Frequently asked questions

What is the difference between AA and AAA?

AA (4.5:1 for normal text) is the baseline most policies reference. AAA (7:1) is the enhanced level recommended for content where readability is critical.

What counts as large text?

Text at least 24 px regular weight, or 18.66 px bold. Large text only needs a 3:1 ratio under WCAG.

Do I need to check contrast for images?

Solid color pairs are what contrast checkers evaluate. For photos behind text, sample representative light and dark areas and check the worst case.

How do I fix a failing color pair?

Darken the foreground or lighten the background until the ratio passes. Most checkers suggest a nearby compliant color you can apply with one click.

What is the difference between AA and AAA?

AA is the common legal and practical baseline: 4.5:1 for normal text and 3:1 for large text. AAA raises the normal-text target to 7:1, which is harder for brand-heavy palettes.

How do I fix a failing color pair?

Darken the text, lighten the background, or both. Check the new pair against the actual font size and weight before shipping.

Can I test contrast in Figma?

Some plugins compute ratios, but check the exported colors in the browser as well. Design tokens and opacity can change the final rendered pair.

What about text over a gradient?

Test the worst-case area under the text, not the average. If the range fails, add a solid overlay or a background plate.