🎨 Developer

Color Contrast Checker 2026 — Free WCAG Tool

Color contrast checker that calculates WCAG 2.1 contrast ratios and instantly shows AA and AAA compliance for normal and large text — free, no sign-up.

Contrast Results

Normal text sample (16px)
Large text sample (24px bold)
Contrast Ratio
AA Normal Text
AA Large Text
AAA Normal Text
AAA Large Text

How It Works

  1. Pick your foreground color — click the color swatch or type a hex code for the text color you want to evaluate.
  2. Pick your background color — click the swatch or type the hex code of the background behind that text.
  3. Read WCAG results instantly — the contrast ratio updates live, showing AA and AAA pass/fail badges for both normal and large text, plus a live preview.

The WCAG 2.1 color contrast checker calculates relative luminance for each color and computes the contrast ratio using the formula (L1 + 0.05) / (L2 + 0.05). A ratio of 4.5:1 or higher passes WCAG AA for normal text; 7:1 or higher passes AAA.

Advertisement

Understanding WCAG Color Contrast

Color contrast is one of the most important accessibility requirements for web design. The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure that text is readable for users with low vision, color blindness, or other visual impairments. Use this color contrast checker to verify your designs before publishing.

WCAG 2.1 Contrast Ratio Requirements

WCAG 2.1 defines contrast requirements at two conformance levels. Level AA is the standard required by most accessibility laws worldwide — including the Americans with Disabilities Act (ADA), Section 508, and Europe's EN 301 549. Level AAA is stricter and is recommended for critical content like healthcare, legal, and government sites. For practical web development, targeting AA compliance is the widely accepted baseline. You can also use our HEX to RGB Converter to convert color formats before testing.

Text TypeAA MinimumAAA Minimum
Normal text (under 18pt or 14pt bold)4.5:17:1
Large text (18pt+ or 14pt+ bold)3:14.5:1
UI components & graphical objects3:1
Decorative text / logosNo requirementNo requirement

How Relative Luminance Is Calculated

Relative luminance is the perceived brightness of a color on a linear scale from 0 (black) to 1 (white). Each sRGB channel (R, G, B) is first linearized by reversing gamma encoding, then combined using perceptual weights: red (21.26%), green (71.52%), and blue (7.22%). The contrast ratio is then (L1 + 0.05) / (L2 + 0.05) where L1 is the lighter color's luminance. This formula is defined in WCAG 2.1 Success Criterion 1.4.3. Our tool also pairs well with the Color Palette Generator for building accessible palettes from scratch.

Frequently Asked Questions

What is the WCAG minimum contrast ratio?
WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text (under 18pt or 14pt bold) and 3:1 for large text (18pt+ or 14pt+ bold). Level AAA requires 7:1 for normal text and 4.5:1 for large text. A ratio of 21:1 (black on white) is the maximum possible.
How is color contrast ratio calculated?
The contrast ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 is the relative luminance of the darker color. Relative luminance converts each sRGB channel using gamma correction and then weights red (0.2126), green (0.7152), and blue (0.0722) per the WCAG 2.1 spec.
What does WCAG AA vs AAA mean?
WCAG (Web Content Accessibility Guidelines) defines three conformance levels: A, AA, and AAA. Level AA is the internationally recognized minimum standard for web accessibility compliance, required by laws such as ADA, Section 508, and EN 301 549. Level AAA is the highest standard and provides enhanced accessibility for users with severe visual impairments.
Does the contrast checker work with hex, RGB, and HSL colors?
Yes. You can enter any hex code (#RRGGBB or #RGB), or use the color picker. The tool converts all formats to relative luminance internally using the WCAG 2.1 algorithm. The live preview updates immediately as you change either color.

Comments

Advertisement