Send feedback

Coming from the page: Color Contrast Checker

One moment…

WCAG 2.2Suggested passing colorsNo ads

Color Contrast Checker

Make sure your text is readable on its background, and get passing colors close to your brand.

Accepts HEX, RGB, HSL, color names, and transparent colors like rgba(0, 0, 0, 0.6).

UseNeededResult
Normal text (AA)4.5:1
Large text (AA)3:1
Normal text (AAA)7:1
Large text (AAA)4.5:1
Icons and field borders3:1

A large bold heading

This is normal body text on your page. If it’s comfortable to read here, it will be for visitors on phones and in sunlight too.

Small text like notes and dates under articles.

Order nowInput field

What each level requires

AA is what websites usually need; AAA is stricter.

UseAAAAA
Normal text4.5:17:1
Large text (24px, or 18.66px bold)3:14.5:1
Icons, field borders and buttons3:1—

Why contrast matters

Reading on phones. Most visitors browse on phones, and low-contrast text is hard to read in bright light.

Every visitor. Good contrast helps older visitors, people with low vision or color blindness, and everyone else too.

Buttons. Button text needs contrast with the button color itself, not the page background.

Google’s audit. Google’s Lighthouse checks text contrast as part of its Accessibility score.

FAQ

What is a contrast ratio?

A number from 1 to 21 comparing the luminance of the text and background colors. Black on white is 21:1; a color on itself is 1:1.

What’s the difference between AA and AAA?

Two levels of the WCAG accessibility standard. AA is what websites and public bodies usually need; AAA is stricter and recommended for long reading.

What counts as large text?

Under WCAG: 24px or larger, or 18.66px or larger when bold.

Why does 4.49 fail?

The standard doesn’t allow rounding: the ratio must actually reach 4.5. So we show the number cut, not rounded.

Can I check transparent colors?

Yes. Enter something like rgba(0, 0, 0, 0.6) and we use the color as it actually appears on the background.

How are alternatives suggested?

Only the color’s lightness changes, keeping its hue, until it reaches the ratio, so it stays close to your brand color.