Colour & accessibility

Contrast Checker & Matrix

Does the text stand out against its background? Choose both colours and check the result. If the pair falls short, try the suggested colour.

Choose the text or icon colour as the foreground and the colour immediately behind it as the background. Click a swatch if you don’t know the colour code.

What do AA, AAA and contrast ratio mean? Which criterion should I use?

Contrast measures the difference in brightness between two colours. Identical colours give 1:1 and black against white gives 21:1. A higher ratio makes the text stand out more from its background.

WCAG is a standard for making web content accessible. For text contrast, AA is the baseline target. AAA asks for stronger contrast for people who need it to read. “Pass” means your two colours meet the threshold in that row.

Normal text
Text below the large-text cutoff, such as a 16 px paragraph or a typical “Save” button label. Aim for at least 4.5:1 for AA or 7:1 for AAA.
Large text
Text set at a font size of at least 24 CSS pixels, or about 18.67 pixels when bold. A 20 px bold heading qualifies, while a 20 px regular heading uses the normal-text thresholds. Large text needs 3:1 for AA or 4.5:1 for AAA.
UI and graphics
Use this for shapes people need to see to understand a control or information. Compare a search icon against its button background, or a chart line against the colour it touches. The AA threshold is 3:1. Check the button’s text separately using a text criterion.

For example, a 4:1 pair falls below AA for a 16 px paragraph but passes AA for a 24 px heading. For the paragraph, select “Normal text · AA” under “Fix contrast” to try a suggested colour.

Colour pair

Fix contrast

This pair meets the target.

Typography and colour

5.894:1Contrast ratio
  • Normal text · AA4.5:1Pass
  • Normal text · AAA7:1Fail
  • Large text · AA3:1Pass
  • Large text · AAA4.5:1Pass
  • UI and graphics · AA3:1Pass

Palette matrix

Choose 2–12 distinct colours. Click a swatch or edit its HEX code.

5 / 12 colours

Rows set the foreground and columns set the background. Select a cell to inspect its pair above.

Normal text · AA
#1C1C20#F8F7F3#6840D9#D9CCFB#66666B
#1C1C20
#F8F7F3
#6840D9
#D9CCFB
#66666B