Colour accessibility checker
Check a pair, a palette, or a picture. You get WCAG 2.2 and APCA, and a fix that changes lightness without touching the hue.
WCAG 2.2 · 16.19:1 · AAA — passes at every size
- AA body text, 4.5:1Pass
- AA large text, 3:1Pass
- AA interface and graphics, 3:1Pass
- AAA body text, 7:1Pass
- AAA large text, 4.5:1Pass
APCA Lc 95.2. A rough Lc reading: enough for body text at ordinary sizes. WCAG 2.2’s ratio is the conformance number today. APCA is a candidate for a future guideline, shown here so the two can be compared.
rgb(22 21 15)
hsl(51 19% 7%)
oklch(19.5% 0.012 99.5)
What the chat window cannot finish.
A single pair is the question you already knew to ask. The failures live in the combinations nobody tested: placeholder text, a disabled control, type sitting on a photograph, a link that is only a different hue. Check one pair, a palette of up to twelve colours, or sample a picture locally. WCAG 2.2 is the conformance standard. APCA is shown beside it as a candidate model, not as a replacement.
An assistant can compute a contrast ratio, and it will occasionally get it wrong — relative luminance involves a piecewise gamma transform, and approximating it is exactly the kind of arithmetic language models fumble. Here the maths is the WCAG 2.1 formula, executed, not estimated.
More importantly, a chat reply cannot show you the swatch. Contrast is a visual property with a numeric threshold; you need both the number and the sight of it.
WCAG 2.2 thresholds
Minimums for conformance. Large text is 18.66px bold or 24px regular and above.
- AA — body text
- 4.5:1
- AA — large text
- 3:1
- AA — UI components & graphics
- 3:1
- AAA — body text
- 7:1
- AAA — large text
- 4.5:1
- Incidental / disabled
- No minimum, but design it anyway
The formula
- Ratio
- (L1 + 0.05) / (L2 + 0.05), lighter as L1
- Relative luminance
- 0.2126·R + 0.7152·G + 0.0722·B on linearised channels
- Linearisation
- c ≤ 0.03928 ? c/12.92 : ((c+0.055)/1.055)^2.4
These constants are published under CC BY 4.0. Quote them, cite them, put them in your own documentation. Attribution to Original Design Studio is the only condition.
The principles behind what this tool tells you.
What is the difference between AA and AAA?
AA requires 4.5:1 for body text and is the level almost all legislation and procurement references. AAA requires 7:1 and is rarely mandated, but is worth hitting for long-form reading and for anything used in bright ambient light.
Does this handle APCA?
Yes, beside the WCAG ratio, not instead of it. APCA’s Lc value is a candidate model for a future guideline and is better at describing light text on dark backgrounds. Nothing in force today asks you to pass an Lc number. If a regulation, a client or a procurement form says WCAG 2.2, the ratio is the number that counts.
What does the one-click fix change?
Lightness only, in OKLCH, until the pair reaches the target ratio. Hue and chroma stay. You can apply the change to the foreground or the background, and the new ratio is shown before you do.
Is my image uploaded?
No. The picture is read on this device, drawn to a canvas, and sampled here. Closing the tab drops it.
Why check placeholder and disabled text?
Placeholder text is still text, and a disabled button is still something people have to find. WCAG exempts some disabled controls, which is not the same as making them invisible. If the only way to see the control is to already know it is there, the exemption has not helped.
Why does my brand colour fail?
Most saturated brand colours fail against white at body-text sizes — that is normal and not a reason to abandon the colour. Reserve it for large text, fills and non-text elements at 3:1, and derive a darker variant for small text.
Can I check a Tailwind or Figma palette?
Paste any list of hex values, one per line, with optional names. The grid takes whatever you give it.
An automated checker flags this page. Is that a bug?
No, and it is worth explaining. Each cell renders the actual pair at its actual contrast — that is the finding, and a checker that hid its failing pairs would be useless. Those samples are marked aria-hidden, so screen-reader users get the ratio and grade as text from the cell's label instead, and the ratio itself is always drawn in black or white against the cell so the number telling you it failed is never itself unreadable.
Next tool
Aspect Ratio & Frame
Want this run across your whole product?
A written plan against the ten disciplines.