Color Contrast Checker β€” WCAG 2.1 AA & AAA Accessibility Validator

Check foreground/background color contrast ratio against WCAG 2.1 accessibility standards.

Presets:
Foreground Color
Background Color
21.00:1
Contrast Ratio
AA
AAA
Normal Text
βœ“ Pass (β‰₯ 4.5:1)
βœ“ Pass (β‰₯ 7:1)
Large Text
βœ“ Pass (β‰₯ 3:1)
βœ“ Pass (β‰₯ 4.5:1)

Small Text (16px) β€” The quick brown fox jumps over the lazy dog.

Large Text (24px) β€” The quick brown fox.

Bold Small (14px bold) β€” Lorem ipsum dolor sit amet.

Heading (32px bold)

Link textBadge

What is WCAG Color Contrast?

The Web Content Accessibility Guidelines (WCAG) 2.1 define minimum contrast ratios to ensure text is readable for people with visual impairments, including color blindness. The contrast ratio is calculated using the relative luminance of the two colors, ranging from 1:1 (identical) to 21:1 (black on white).

WCAG defines two conformance levels: AA (minimum) requires a 4.5:1 ratio for normal text and 3:1 for large text (β‰₯18pt or β‰₯14pt bold). AAA (enhanced) requires 7:1 for normal text and 4.5:1 for large text. All calculations are done locally in your browser.

Supported Color Formats

  • HEX β€” #1a2b3c or shorthand #abc
  • RGB β€” rgb(26, 43, 60)
  • HSL β€” hsl(210, 40%, 17%)