Colour contrast checker with WCAG, APCA and fixes
Check any text and background pair against WCAG 2 AA and AAA and the newer APCA method. If it fails, get the nearest colour that passes, in the same hue, and see how the pair looks with common types of colour blindness.
- Free, no sign-up
- Runs in your browser
- Saves as you go
Design systems ship faster
Body text at 16px. Your team reads this all day, so it needs to pass comfortably, not just barely.
Small print at 13px · Last updated 2 hours ago
Every passing pair in a ramp. Rows are text, columns are backgrounds. Select a cell to load it above.
How to use it
- Enter two colours
Paste hex values for text and background, or click swatches from your palette.
- Read the verdict
See the ratio, the APCA value and which WCAG levels pass, on real text sizes.
- Fix what fails
Apply the nearest passing colour with one click, then check the preview with colour blindness simulated.
What the numbers mean
| Level | Ratio | Applies to |
|---|---|---|
| AA | 4.5:1 | Body text and anything smaller than large text |
| AA, large text | 3:1 | Text at least 24px, or 18.66px bold |
| AA, non-text | 3:1 | Icons, input borders, focus rings and other UI parts (WCAG 1.4.11) |
| AAA | 7:1 | Body text, for the enhanced level |
| AAA, large text | 4.5:1 | Large text, for the enhanced level |
WCAG 2's ratio is the legal and procurement standard today. APCA, developed for the next generation of WCAG, models how contrast is perceived more closely: it treats dark text on light differently from light text on dark, and takes text size and weight into account. We show both. Use WCAG 2 to meet requirements and APCA as a second opinion, especially for dark mode and thin text.
How the fixes are found
When a pair fails, the checker keeps the colour's hue and chroma in OKLCH and moves only its lightness, a step at a time, until the pair passes. That gives the smallest visible change that meets the target, in the same family as your original colour. It suggests fixes for the text and the background separately, for AA and for AAA.
Contrast isn't the whole story
About 1 in 12 men and 1 in 200 women have some form of colour vision deficiency. Two colours can pass contrast and still be hard to tell apart, like a red error and a green success state. Use the colour vision simulation to check, and never rely on colour alone: add an icon, a label or a pattern.
Questions
What contrast ratio do I need for WCAG AA?
4.5:1 for normal text, 3:1 for large text (24px, or 18.66px bold) and 3:1 for icons and UI parts like input borders.
What is APCA?
The Accessible Perceptual Contrast Algorithm, developed for future versions of WCAG. It gives an Lc value that accounts for polarity, text size and weight. It isn't a legal requirement yet.
How do I fix a colour that fails?
Use the suggested fix: it keeps your hue and changes only the lightness to the nearest value that passes.
How accurate is the colour blindness simulation?
It's an approximation based on Machado et al. (2009), applied to the preview. It's good for spotting colours that become hard to tell apart, not for exact appearance.
Does it check my whole palette?
Yes. The pair matrix shows every text and background combination in a ramp that passes the level you choose.
Our two-week audit turns your real screens into a token plan, a first-components list and a rollout plan.