Skip to content

Check color contrast (WCAG)

Check whether a text/background color combination meets the AA and AAA contrast levels from the WCAG 2.x accessibility guidelines.

Processed on your device. Nothing is sent to any server.
Sample text

16.85:1

  • 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)Pass

Calculates the relative luminance of each color per the WCAG formula and derives the contrast ratio between them, comparing it against the 3:1, 4.5:1 and 7:1 thresholds.

Use cases

  • Verifying that a button or text is readable before publishing.
  • Auditing an interface's accessibility.
  • Choosing brand colors that meet WCAG AA.

How it works

  1. 1

    Pick text and background colors

    Enter both colors in HEX.

  2. 2

    Check the ratio

    See the contrast ratio and which WCAG levels it meets.

Technical details

  • It calculates the WCAG 2.x contrast ratio from the two colours' relative luminance, from 1:1 (identical) to 21:1 (black on white).
  • Thresholds: AA requires 4.5:1 for normal text and 3:1 for large text; AAA, 7:1 and 4.5:1. Large text is 24 px or more, or 18.66 px or more in bold.
  • The comparison uses the unrounded value, as the standard requires: grey #767676 on white gives 4.54:1 and passes AA; #777777 gives 4.48:1 and fails, even though they look alike.
  • It doesn't evaluate transparency, gradients or text over images: check the colour pair that is actually displayed.

Frequently asked questions

What's the difference between AA and AAA?

AA is the recommended minimum level (4.5:1 for normal text); AAA is stricter (7:1) and recommended for critical content.

What counts as large text under WCAG?

Text of at least 18pt, or 14pt bold, which has a lower contrast threshold (3:1 under AA).

← Colors & design