WCAG color palette checker
Check a whole color palette for WCAG contrast violations: every foreground/background pair in a matrix, failures spotted, fixes shown. Free, browser-only.
Check an entire color palette for WCAG contrast failures in one matrix view. Every foreground/background pair is graded for AA normal and large text, with failures flagged at a glance.
Add as many colors as you need; the matrix scales automatically and makes obvious which combinations need fixing before you export.
Run the check before you lock the palette, not after the UI is built: the cheapest fix for a failing pair is shifting the palette color one step darker or lighter while the scale is still fluid. Pairs that fail at normal text but pass at large text are still usable for headings and icons — the matrix tells you which is which so the decision is deliberate.
Contrast matrix
6/15 pairs pass AA
Primary | Secondary | Accent | Background | Surface | Text | |
|---|---|---|---|---|---|---|
Primary | 1.6Fail | 1.1Fail | 3.5Fail | 3.2Fail | 5.2AA | |
Secondary | 1.6Fail | 1.5Fail | 5.6AA | 5.1AA | 3.2Fail | |
Accent | 1.1Fail | 1.5Fail | 3.8Fail | 3.5Fail | 4.7AA | |
Background | 3.5Fail | 5.6AA | 3.8Fail | 1.1Fail | 17.9AA | |
Surface | 3.2Fail | 5.1AA | 3.5Fail | 1.1Fail | 16.4AA | |
Text | 5.2AA | 3.2Fail | 4.7AA | 17.9AA | 16.4AA |
Failing combinations
Want the full design system from a color? Open the color palette generator to create accessible palettes, semantic tokens, light and dark themes, and production-ready CSS — all from a single color.
How to use this tool
- Add your palette colors with names and hex values.
- Check the contrast matrix for failing pairs.
- Adjust colors until all pairs pass WCAG AA.
Frequently asked questions
- How is this different from the contrast checker?
- The contrast checker tests one pair at a time. This tool tests every combination in your palette at once, showing a matrix of contrast ratios and pass/fail grades.
- What does AA and AAA mean?
- WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1. The matrix shows AA grades; hover for the full breakdown.
- How many colors can I add?
- As many as you need. The matrix scales automatically, though it becomes harder to read beyond about 8 colors.
- Does passing text contrast cover my whole UI?
- Not quite — WCAG also requires 3:1 for UI components and graphical objects (borders, input outlines, focus indicators, icons that carry meaning). A palette that passes for text usually covers these too, but check your border and focus colors explicitly; they are the most common silent failures.
Related tools
Related guides
Accessibility · 14 Oct 2026
WCAG contrast ratios: the math behind the numbers
A contrast ratio is a single quotient between two relative-luminance values. Here's the exact WCAG math, the thresholds, and what the numbers can't tell you.
Accessibility · 8 Nov 2026
Designing for color blindness in practice
Roughly 8% of men are color vision deficient. Design so meaning never depends on hue alone — then prove it with simulation across eight conditions.
Design systems · 9 Oct 2026
How to build a color palette for a SaaS dashboard
Dashboards stress-test color harder than any other UI. Here's how to build a SaaS palette that survives dense data, status colors and dark mode.
WCAG color palette checker runs entirely in your browser — nothing you enter is sent to a server.