Copied
WCAG colour contrast checker

Check whether your colours are readable and accessible.

Test foreground and background colours, preview the result, check WCAG AA and AAA outcomes, then copy clean HEX values or CSS variables for your design system.

Readable colour matters.

This sample updates as you change the foreground and background colours.

Contrast ratio
21.00
Pass
Pass
AA normal text · 4.5:1
Pass
AA large text · 3:1
Pass
AAA normal text · 7:1
Pass
AAA large text · 4.5:1

Copy the colour pairing

Use this in CSS, a design system, or a quick accessibility note.

:root {
  --contrast-text: #111827;
  --contrast-background: #FFFFFF;
}

Accessible examples to try

Start from a real palette or a safe high-contrast pairing, then adjust it for your project.

What the score means

The higher the ratio, the easier the combination is to read for more people and more display conditions.

AA normal text

Use at least 4.5:1 for body copy, navigation, links, buttons and most interface text.

AA large text

Large text can pass at 3:1, but higher contrast usually still feels clearer and more professional.

AAA text

7:1 is the stronger target for long reading, critical information, accessibility-first products and dashboards.