Skip to content
TechSolve

Color Contrast Checker

Check colour contrast against WCAG AA and AAA for normal text, large text and UI components, plus the APCA (draft WCAG 3) Lc value — with live preview, an eyedropper and one-click fixes.

Color Contrast Checker

How to use Color Contrast Checker

  1. 1Enter the text and background colours — hex, rgb(), hsl(), the picker or the eyedropper.
  2. 2Read the ratio, the AA/AAA verdicts and the APCA value on the live preview.
  3. 3If it fails, apply a suggested fix, then copy the CSS or share the link.

What it does

  • WCAG 2.x contrast ratio with pass/fail for AA and AAA, normal and large text, and UI components
  • APCA Lc value (the draft WCAG 3 model) with a plain-language guide
  • Type hex, rgb() or hsl(), use the native colour picker, or pick from the screen with the eyedropper
  • Live preview: body text, large text and UI samples on your exact colours
  • Fix it: the nearest lightness tweak of the text colour that reaches 4.5:1 or 3:1, applied in one click
  • Swap colours, copy the CSS, and share the pair as a link (?fg=…&bg=…)

FAQ

What contrast ratio does WCAG require?
For AA: at least 4.5:1 for normal text and 3:1 for large text (24px, or 18.5px bold) and for UI components such as icons and input borders. For AAA: 7:1 for normal text and 4.5:1 for large text. The ratio runs from 1:1 (same colour) to 21:1 (black on white).
What is APCA and how is it different?
APCA (Accessible Perceptual Contrast Algorithm) is the candidate contrast model for the draft WCAG 3. Instead of a symmetric ratio it gives a signed Lc value (positive for dark-on-light, negative for light-on-dark) that tracks perceived contrast better, especially for dark backgrounds and thin fonts. As a rough guide, |Lc| 90 suits preferred body text, 75 minimum body text, 60 large text and 45 headlines or large UI text. It is still a draft — WCAG 2.x is what regulations require today.
Why does grey #888888 text fail on white?
#888888 on #ffffff gives about 3.54:1 — enough for large text (3:1) and UI components, but short of the 4.5:1 AA minimum for normal text. The Fix-it row suggests the nearest darker grey that reaches 4.5:1, keeping the hue.
How do the fix suggestions work?
They search the text colour's HSL lightness in small steps, keeping hue and saturation, and return the closest lightness that reaches the target ratio against your background — so the fix stays recognisably your colour. If no lightness of that hue can pass (for example on a mid-grey background), it says so and you'll need to adjust the background too.
Where does the eyedropper work?
The eyedropper uses the browser's EyeDropper API, currently available in Chromium browsers (Chrome and Edge) on desktop; the button is hidden where the API doesn't exist. The colour picker and text inputs work everywhere.

You might also like