Colour Contrast Checker

Good contrast makes text readable for everyone. Choose a text colour and a background colour to see the WCAG contrast ratio and whether it passes each level.

Loading the tool…

How it works

  • Relative luminance is calculated per WCAG 2.x from the sRGB values; the ratio is (lighter + 0.05) ÷ (darker + 0.05). The ratio is truncated, not rounded up, to two decimals.
  • Thresholds: AA normal text 4.5, AA large text 3, AAA normal text 7, AAA large text 4.5, UI components and graphics 3. Large text is 24 px, or 18.66 px bold.

Assumptions and limits

  • WCAG 2.x only: the newer APCA method is not used. Transparency, gradients and images behind text are not considered.

Frequently asked questions

What level should I meet?

WCAG AA is the usual legal and good-practice target for most websites.

Related tools

Last reviewed 2026-10-28. More developer, web & seo tools tools. See the disclaimer.

Report a problem with this tool