Colour & design

Colour contrast checker

Check colour contrast ratio against WCAG 2.1 accessibility standards. Shows AA and AAA compliance for normal and large text.

  • Free, no sign-up
  • No data stored
  • Reviewed 2026-01-15

Your details

Results

Contrast ratio 18.45:1 Passes aaa
Aa normal
✓ Pass

4.5:1

Aa large
✓ Pass

3:1

Aaa normal
✓ Pass

7:1

Aaa large
✓ Pass

4.5:1

Ui components
✓ Pass

3:1

Contrast scale
  • Fails wcag
  • AA Large text
  • AA
  • AAA

Preview

Preview text

Preview small

CSS

:root {
    --text: #0D1420;
    --background: #FFFFFF;
}

Suggestions

Option Colour Contrast ratio
#000000 On background #FFFFFF 21.00:1
#FFFFFF On background #FFFFFF 1.00:1

Contrast note

About the Contrast Checker

Enter a foreground and background colour to calculate the contrast ratio and check WCAG 2.1 compliance levels. The tool shows pass/fail for AA and AAA standards at both normal and large text sizes. A live preview demonstrates readability.

How to use the Contrast Checker

  1. Enter the foreground (text) colour.
  2. Enter the background colour.
  3. Set font size and weight context.
  4. View the contrast ratio and WCAG results.

Frequently asked questions

What contrast ratio is needed for WCAG AA?

At least 4.5:1 for normal text (<18pt) and 3:1 for large text (≥18pt or bold ≥14pt). AAA requires 7:1 and 4.5:1 respectively.

What is considered large text?

18pt (24px) or larger normal weight, or 14pt (18.66px) or larger bold. Large text has lower contrast requirements.

Does this check colour blindness?

Not directly. Contrast ratio ensures sufficient luminance difference. For colour-blindness simulation, use a dedicated tool alongside this checker.

Sources

Figures are estimates for guidance only. Always confirm with the official source or a qualified professional before acting on them.