Developer Tools

WCAG Color Contrast Checker

Check the contrast ratio between any two hex colours and see whether they pass WCAG AA and AAA for normal and large text. Essential for accessible, readable design.

Tool

About the WCAG Color Contrast Checker

The Color Contrast Checker runs entirely in your browser — nothing you paste is uploaded or stored.

Low-contrast text is one of the most common accessibility problems on the web. The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios so text stays readable for people with low vision or colour blindness. This tool computes the ratio for any foreground and background pair.

How to use this tool

  1. Enter the text colour and the background colour as hex codes.
  2. Press Check contrast to see the ratio and pass/fail results.
  3. Use Swap to flip the two colours, or tweak a shade and watch the ratio update.

What the ratios mean

LevelNormal textLarge text
AA4.5:13:1
AAA7:14.5:1

Contrast is calculated from relative luminance, with the darker colour always placed in the denominator, so the ratio is the same whichever colour is the text.

Pro tip

Large text is 18pt (24px) regular or 14pt (18.66px) bold. Buttons and form labels count as normal text, so aim for 4.5:1 there even if they look big.

Who is this tool for?

Designers, front-end developers and content authors making sure text is readable and meets accessibility standards such as WCAG 2.2.

Frequently asked questions

WCAG AA requires 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively.
No. The ratio is symmetric; swapping text and background gives the same result.
Three- and six-digit hex values, with or without a leading hash. Short forms like #fff are expanded automatically.

Related tools

Guides for this tool