↑

Free Color Contrast Checker

What this tool does

The Color Contrast Checker tests any text and background color pair against the WCAG accessibility standards. Pick colors or type hex codes to get the contrast ratio instantly, with pass or fail results for AA and AAA at normal and large text sizes, plus a live preview. Black on white scores the maximum 21:1. Use it to keep websites readable for everyone. Free and private in your browser.



WCAG 2.1 minimums: AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1. Large text means 24px+, or 19px+ bold.
-
Contrast ratio
-
WCAG AA
-
WCAG AAA
Preview
Large text sample 24px
Normal text sample. The quick brown fox jumps over the lazy dog 0123456789.

Let us know

Please share your experience with this tool.

Thanks for rating!
No ratings yet — be the first!

How do I use the color contrast checker?

Pick a text color and a background color with the color pickers, or type hex codes like #1f2937 directly. The contrast ratio updates instantly, with pass or fail results for WCAG AA and AAA at normal and large text sizes, and a live preview showing both sizes. Swap colors reverses the pair, Sample loads a bright blue on white (2.21:1 — a fail worth seeing), and Copy result gives you a one-line summary to share with your team.

What is contrast ratio?

Contrast ratio compares the relative luminance (perceived brightness) of two colors and ranges from 1:1 (identical colors, invisible text) to 21:1 (black on white, the maximum). It is calculated from the red, green and blue values after converting them to linear light, weighting green most because human eyes are most sensitive to it. The ratio is the same whichever color is text and whichever is background.

What are the WCAG AA and AAA requirements?

WCAG 2.1 level AA — the standard most laws and policies require — needs at least 4.5:1 for normal text and 3:1 for large text. Level AAA, the stricter enhanced level, needs 7:1 for normal text and 4.5:1 for large text. The classic boundary example is #767676 gray on white at 4.54:1: it just passes AA for normal text. Anything below 3:1 fails everything.

What counts as large text?

WCAG defines large text as at least 18 point (24 CSS pixels), or 14 point bold (about 19 CSS pixels bold). Headings usually qualify; body text, captions, buttons and form labels usually do not. When in doubt, test against the normal-text requirement — passing 4.5:1 covers you everywhere.

How do I fix low contrast?

Darken the text or lighten the background (or the reverse) until the ratio passes — small steps often keep your brand color recognizable. Test hover and disabled states too, not just the resting design. And never rely on color alone to convey information: add icons, underlines or text labels so color-blind users are not left guessing.

Is it free and private?

Yes. The color contrast checker is completely free, needs no sign-up, and runs entirely in your browser. Nothing is uploaded to a server. It works on phones, tablets and desktop computers.

FAQs

What is a good contrast ratio?

At least 4.5:1 for normal text (WCAG AA). For large text 3:1 is the AA minimum. AAA needs 7:1 and 4.5:1 respectively. Black on white is the maximum at 21:1.

What ratio do I need for large text?

3:1 for WCAG AA and 4.5:1 for AAA. Large text means 24px or bigger, or about 19px bold and up.

How is the contrast ratio calculated?

From the relative luminance of both colors: (lighter + 0.05) divided by (darker + 0.05), using the WCAG 2.1 formula.

Does swapping text and background change the ratio?

No, the ratio is identical either way round. The Swap button is there so you can preview both arrangements.

Is my data uploaded to a server?

No. The calculation runs entirely in your browser; nothing is uploaded.

Is it free?

Yes, completely free with no sign-up. Everything runs in your browser.


Author

Awais Arshad

Web Tools Developer & Content Creator at FastToolKit.