Skip to content
Web Codes Stack
Explore Free Tools

Color Contrast Checker

Compare two colors, preview text, and check the contrast ratio against WCAG 2.2 thresholds.

Colors

Foreground
Background

Enter a 3- or 6-digit hex color, with or without #.

Text preview

Aa

The quick brown fox jumps over the lazy dog.

Contrast ratio

—
WCAG 2.2 contrast results
CheckMinimumResult
AA normal text4.5:1—
AAA normal text7:1—
AA large text3:1—
AAA large text4.5:1—
AA controls and graphics3:1—

How to read the WCAG 2.2 checks

The checker compares two opaque colors and uses the unrounded ratio for pass or fail results. For a translucent color, first find the color it produces over its actual background.

Large text is at least 18 pt regular or 14 pt bold, approximately 24 CSS pixels or 18.7 CSS pixels, respectively. The controls and graphics check applies to visual information needed to recognize controls, their states, and meaningful parts of graphics. Compare those elements with their adjacent colors.