MultiSwitch MultiSwitch
SEARCH
SEARCH
Converters Tools Currency Feedback

Color Contrast Checker

Check WCAG contrast ratio between two colors

Pick a text color and a background color to check their contrast ratio.

Sample text preview
—
Contrast ratio
AA Normal Text
AAA Normal Text
AA Large Text
AAA Large Text
WCAG thresholds: AA needs 4.5:1 for normal text, 3:1 for large text (≥18pt or ≥14pt bold). AAA needs 7:1 for normal text, 4.5:1 for large text.

Why colour contrast matters

Text that doesn't stand out enough from its background is hard to read for people with low vision or colour blindness, on dim or glare-affected screens, and for anyone outdoors on a phone. The Web Content Accessibility Guidelines (WCAG) set minimum contrast ratios so text stays readable for as many people as possible. Many organisations and public-sector sites are required to meet them.

How the ratio is calculated

Each colour is converted to its relative luminance (L), its perceived brightness from 0 for black to 1 for white, with green weighted most heavily because our eyes are most sensitive to it. The ratio is then:

Contrast ratio = (Llighter + 0.05) ÷ (Ldarker + 0.05)

Results range from 1:1 (identical colours) to 21:1 (black on white).

  • AA: 4.5:1 for normal text, 3:1 for large text
  • AAA: 7:1 for normal text, 4.5:1 for large text

“Large” means at least 18pt (24px) regular, or 14pt (about 18.7px) bold.

Worked example

Mid-grey #767676 on white works out at about 4.54:1. It just passes AA for normal text, and is roughly the lightest grey that does on a white background. One step lighter, #777777, drops to about 4.48:1 and fails. Light-grey placeholder text and pale brand colours on white are among the most common contrast failures.

FAQ

Is AA or AAA the right target?

AA is the standard most laws and policies refer to, and the practical baseline for websites and apps. AAA is stricter and worth aiming for on long-form reading text, but it isn't always achievable for every element.

Does contrast apply to buttons and icons too?

Yes. WCAG 2.1 added a 3:1 minimum for meaningful non-text elements such as icons, form field borders and focus indicators against their surroundings.

Why does my brand colour fail on white?

Bright yellows, oranges, light greens and cyans have high luminance, so they sit too close to white. Use them for backgrounds with dark text on top, or darken the shade used for text.

Is the ratio the same whichever colour is text?

Yes. The formula always puts the lighter colour on top, so swapping text and background gives the same ratio. Readability can still feel different (light-on-dark text often reads slightly bolder).