Color Contrast Checker

Check whether text and background colors meet WCAG accessibility contrast standards.

Foreground (text)

Background

What is color contrast?

The contrast ratio measures the difference in relative luminance between foreground text and its background. WCAG uses it to evaluate text readability.

FAQ

How do I know if text contrast passes?

Normal text needs 4.5:1 for AA or 7:1 for AAA. Large text needs 3:1 for AA or 4.5:1 for AAA.

What counts as large text in WCAG?

Large text is at least 24 CSS pixels, or at least 18.66 CSS pixels when bold.

How is the contrast ratio calculated?

The tool converts sRGB colors to relative luminance, then divides the lighter luminance plus 0.05 by the darker luminance plus 0.05.