Colour Palette & WCAG Contrast Checker
Pick one base colour and get a five-colour palette that works together — then see exactly which text-and-background pairings meet WCAG AA and AAA contrast, before you ship them. Everything runs in your browser; nothing is uploaded.
Why it matters: low-contrast text is the single most common accessibility failure found on the web, present on 83.9% of home pages in WebAIM's annual analysis of the top million sites. This tool checks contrast as you build the palette, not after.
1 · Build your palette
Choose a base colour, then a harmony rule. The palette, contrast checks, simulations and exports below all update live.
Type any hex value — #RGB or #RRGGBB.
Tap a swatch's hex to copy it. “Use in checker” loads that colour into the pair checker in step 3.
Tonal scale — 50 to 950
A full tonal ramp from your base colour, the way design systems (and Tailwind) name shades. Ticks show whether that step reaches AA for normal text on white (W) or on black (B) — check the exact pairing in the matrix below before relying on it.
2 · Every pairing, checked
All 20 pairings of your five colours, in both directions. Each cell shows the contrast ratio and the strongest WCAG level that pairing reaches for normal text. A colour on itself is always 1.00:1.
Pairings that reach AA or better for normal text (4.5:1+)
None of the palette pairings reach 4.5:1 yet. Try a darker or lighter base colour, or use the “Fix to AA” button in the pair checker below — it adjusts one colour until the pairing passes.
3 · Check one pairing in detail
Pick any two colours — from the palette or any hex values — and see the ratio, all four WCAG levels, and a live text preview.
Contrast ratio
—
“Fix to AA” nudges the text colour's lightness, keeping its hue, until the pairing reaches 4.5:1 — or tells you if that's impossible against this background.
Large text — headings
Normal text — the quick brown fox jumps over the lazy dog. Body copy needs the full 4.5:1 for AA.
Small text — fine print, captions and footnotes are the first thing low contrast breaks. If this is hard to read here, it will be harder on a phone in sunlight.
Preview uses your exact two colours. Judge it at the size the text will really appear — a pairing can pass for large headings and fail for body text.
4 · Colour-blind simulation
Your palette as it may appear to people with the most common forms of colour-vision deficiency. Use it to check that meaning never rides on colour alone — pair colour with labels, icons or patterns too. This is a simulation to help you check, not a guarantee of how any individual person sees.
5 · Export the palette
One click into your project: CSS custom properties, a Tailwind config (including the 50–950 scale), Figma Tokens Studio JSON, or SCSS variables.
Read this before you call a palette “accessible”
A palette never passes WCAG — only a pairing does. Contrast is a relationship between one text colour and one background colour, at one text size. The same colour can pass on white and fail badly on a mid-tone from the same palette, which is exactly what the matrix above shows.
Contrast is not the whole of accessibility, or of the law. WCAG covers much more than colour — keyboard access, focus visibility, labels, motion, and more. In Australia, the Disability Discrimination Act 1992 is the law that applies, and Australian government services are expected to meet WCAG 2.2 AA. Passing the ratios on this page does not, on its own, make a site legally compliant — and this page is a checking tool, not legal advice.
The simulation is an approximation. Colour-vision deficiency varies from person to person; treat step 4 as a prompt to add non-colour cues, not as proof a design is safe.
How the numbers work
Each colour is converted to its relative luminance using the WCAG 2.x formula: the sRGB channels are linearised, then weighted (green counts most, blue least, because that's how human vision responds). The contrast ratio is then (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter colour — giving a number from 1:1 (identical) to 21:1 (black on white).
| Level | Normal text | Large text (≥ 24px, or ≥ 18.66px bold) |
|---|---|---|
| WCAG AA — the usual target | 4.5 : 1 | 3 : 1 |
| WCAG AAA — the enhanced target | 7 : 1 | 4.5 : 1 |
Harmonies are plain HSL maths: complementary adds 180° of hue, triadic adds 120° steps, analogous steps ±20–40°, and monochromatic holds the hue and walks the lightness. No AI, no upload — the whole tool is arithmetic in your browser tab.