Tools / Contrast matrix
Contrast matrix
Paste your palette and instantly see which colors are safe to use together for text.
How to use it
Three quick steps.
- Paste up to eight hex codes, separated by spaces or commas.
- Read the grid: each cell shows text in the row color on the column color.
- Pick only the pairs that pass for body text.
Good to know
Get better results.
- Green cells pass AA for normal text (4.5:1) or better.
- Amber cells only pass for large text or graphics (3:1).
- Red cells fail. Do not use those pairs for text.
Common questions
What do the cell labels mean?
AAA is 7:1 or more, AA is 4.5:1 or more, AA large is 3:1 or more, and Fail is below 3:1.
Why test all pairs?
A palette can look great and still hide pairs that are unreadable. Testing every pair up front keeps designers and developers from picking one by accident.
More tools
Keep going with a related tool.