Color Contrast Checker

Check any two colors against WCAG contrast requirements. Instant AA and AAA results for normal and large text. Works entirely in your browser.

- : 1

Large text sample - 24px regular counts as large text.

Normal text sample. This is the size most of your paragraphs will be, so it needs the stricter 4.5:1 ratio to stay comfortably readable for everyone.

Contrast checker FAQ

What is a WCAG contrast ratio?
A number between 1:1 and 21:1 describing how distinguishable text is from its background, calculated from relative luminance. Black on white is 21:1; subtle gray on white often falls near 2:1 and fails accessibility checks.
What contrast ratio do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text (18.66px bold or 24px regular and above). The stricter AAA level requires 7:1 for normal text and 4.5:1 for large text.
Do buttons and icons need contrast too?
Yes - UI components and meaningful graphics need at least 3:1 against adjacent colors under WCAG AA. That covers button borders, input outlines, icons carrying meaning and chart lines.
Why does my brand color fail?
Mid-tone brand colors often sit too close in luminance to white or to each other. The usual fixes: darken the text color, switch the background to a near-white or near-black tint, or use the brand color only for large headings and keep body text neutral.