Skip to content
Engyna

Palette Contrast Grid

Test every color pair in a palette for accessible contrast at once.

How to use the Palette Contrast Grid

  1. 1Paste your palette colors.
  2. 2See the contrast of every foreground and background pair.
  3. 3Filter to the pairs that pass and export them.

About Palette Contrast Grid

The Palette Contrast Grid tests every foreground and background pair of a color palette in one contrast matrix. Paste up to 50 colors as a hex list, name: color lines, CSS custom properties or JSON design tokens, or import CSV rows with name and color columns, and the grid shows the contrast ratio of every combination with a pass or fail for the WCAG level you pick.

Switch between AA and AAA and between normal text and large text or UI components, show only the passing pairs, and sort the colors by lightness so accessible combinations line up. A vision filter shows the grid as seen with protanopia, deuteranopia, tritanopia or achromatopsia. The list of passing pairs can be copied or downloaded as Markdown, CSV or JSON, ready for documentation.

The Palette Contrast Grid is made for design system colors: deciding which text colors are allowed on which surfaces, documenting accessible color combinations for a team, or auditing a brand palette before it goes into production. Checking all pairs of an accessible palette at once is much faster than testing combinations one by one, and it shows gaps, such as a missing dark shade, right away.

Frequently asked questions

What is a contrast grid?

A table with the palette's colors on both axes, so each cell shows one text color on one background with its contrast ratio. It reveals at a glance which combinations are safe to use.

Why do so few pairs in my palette pass?

Contrast depends on the difference in lightness, not in hue. Mid-tone colors rarely reach 4.5:1 against each other and usually need a very light or very dark partner, so adding lighter and darker shades to the palette gives more passing pairs.

What contrast do buttons and icons need?

WCAG 1.4.11 asks for at least 3:1 for the visible boundaries of interface components and for graphics that carry meaning. Choose Large / UI in the rules to filter for that threshold.

Can I import design tokens from JSON?

Yes. Nested JSON tokens such as a gray scale with 50, 400 and 900 steps are read together with their names, and so are CSS custom properties like --brand-600: #4f46e5.

Guides