Home / Color Contrast Checker

Color Contrast Checker

Check whether your text and background colors meet WCAG AA and AAA contrast requirements.

WCAG testNeedsResult
AA, normal text4.5 : 1
AA, large text3 : 1
AAA, normal text7 : 1
AAA, large text4.5 : 1
UI components and graphics3 : 1

What is color contrast?

Contrast ratio compares the brightness of two colors, from 1 : 1 (identical) to 21 : 1 (black on white). The Web Content Accessibility Guidelines (WCAG) set minimum ratios so text stays readable for people with low vision or color-vision differences, and for anyone reading in bright light.

WCAG requirements

LevelNormal textLarge text
AA (the usual target)4.5 : 13 : 1
AAA (enhanced)7 : 14.5 : 1

"Large text" means at least 18 pt (about 24 px), or 14 pt (about 18.7 px) when bold. Button borders, icons and chart elements need at least 3 : 1 against nearby colors.

How the ratio is calculated

Ratio = (L1 + 0.05) ÷ (L2 + 0.05), where L1 is the lighter color's relative luminance and L2 the darker.
Luminance = 0.2126 R + 0.7152 G + 0.0722 B, after converting each channel from sRGB to linear light.

Example: #267FD9 on white gives about 4.1 : 1, which fails AA for normal text. The darker #1B5998 gives about 7.2 : 1 and passes AAA. The tool shows the ratio rounded down to two decimals, so a result is never overstated.

Tips for passing

Need a safe palette? Try the color palette generator and test your picks here, or read the monochromatic and complementary colors guide.

Frequently asked questions

What is a good color contrast ratio?

At least 4.5 : 1 for normal text and 3 : 1 for large text meets WCAG AA. 7 : 1 and 4.5 : 1 meet the stricter AAA level.

What counts as large text?

Text of at least 18 pt (about 24 px), or at least 14 pt (about 18.7 px) in bold.

Is black on white the best contrast?

It has the maximum ratio of 21 : 1, but very high contrast can feel harsh for long reading. Dark grey on white still scores very high.

Does contrast apply to buttons and icons?

Yes. WCAG asks for at least 3 : 1 for interface components and meaningful graphics against adjacent colors.

Does this tool store my colors?

No. The calculation happens in your browser.

Share this page
XFacebookLinkedInWhatsAppTelegram