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.