Tool · Contrast Matrix

Contrast Matrix.

Audit your whole palette for accessibility at a glance. Add the colors you use, get an N×N grid of every pair's WCAG contrast ratio - see which combinations work as foreground+background and which fail.

Palette (6 / 12)
WCAG
Text size
Threshold: AA · Normal · ≥ 4.5:1
FG ↓ · BG →
Ink
#0E1014 · bg
Slate
#5A6473 · bg
Cloud
#E6EAF0 · bg
Paper
#FAFAF5 · bg
Pria
#FF4F4F · bg
Devi
#1AB4D6 · bg
Ink
#0E1014 · text
N/A
Slate
#5A6473 · text
N/A
Cloud
#E6EAF0 · text
N/A
Paper
#FAFAF5 · text
N/A
Pria
#FF4F4F · text
N/A
Devi
#1AB4D6 · text
N/A
Pass - ratio meets 4.5:1
Fail - below threshold
Simulate for color blindness →

Audit every color pair in a palette

A contrast matrix compares each palette color against the others in one grid. Add your interface colors to find useful foreground and background combinations before they are applied to buttons, labels, cards, or navigation. Check the text-size setting that matches the design, review which pairs meet the selected WCAG AA or AAA target, and export the results as CSV or Markdown for a design review.

Choose contrast pairs in context

A passing pair in a matrix is not a complete accessibility audit. Test the actual type size and weight, component states, focus treatment, and surrounding colors in the interface. WCAG 2.2 contrast requirements have defined exceptions, and contrast alone cannot make meaning clear when information is communicated only by color. Use the color blindness simulator to review palette distinctions from additional visual perspectives.

What is the contrast matrix?

A contrast matrix checks every color in a palette against every other and shows the WCAG ratio and APCA value for each pair in a grid, so you can see at a glance which combinations are usable for text.

Reading the matrix

Rows are text colors and columns are backgrounds. Each cell shows the ratio and is shaded by result: passes AAA, passes AA, passes AA for large text only, or fails. Click a cell to open that pair in the contrast checker, or export the grid as an image for documentation. For a ten-color palette that is 90 pairs checked in one step.

Contrast Matrix FAQ

How do I check contrast for a whole color palette?

Paste the palette here. The matrix tests every pair and colors each cell by its WCAG result.

Which pairs should I use for body text?

Only cells marked AA (4.5:1) or AAA (7:1). Large-text-only cells are fine for headings at 18pt and above.

Related color tools

Learn more