Color Contrast Checker (WCAG Contrast Ratio)

Check the contrast ratio between text and background colours (hex) against WCAG 2 accessibility levels AA and AAA for normal text, large text and UI…

Results

Enter your details and click Calculate to see your results.
About This Calculator

Contrast ratio = (lighter luminance + 0.05) ÷ (darker luminance + 0.05), from 1:1 (same colour) to 21:1 (black on white). WCAG AA needs 4.5:1 for normal text and 3:1 for large text (18 pt, or 14 pt bold). AAA needs 7:1 and 4.5:1.

Icons, form borders and focus outlines need 3:1 against their background.

Example

Example: grey #767676 on white is 4.54:1, which is the lightest grey that passes AA for normal text.

Assumptions

WCAG 2.x sRGB relative luminance. Doesn't cover transparency or text over images; test against the actual background pixels.

Frequently Asked Questions

What contrast ratio is accessible?

At least 4.5:1 for body text (WCAG AA).

What is the contrast of black on white?

21:1, the maximum.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile