← Home · Tools

Free tool

Color contrast checker

Do your text and background colors pass the WCAG 1.4.3 contrast threshold? Check instantly.

WCAG 1.4.3 (Contrast Minimum, level AA) asks for a contrast ratio of at least 4.5:1 between text and its background, and 3:1 for large text (at least 18pt, or 14pt bold). Enter two hex colors to see the ratio and whether normal and large text pass; the stricter AAA level (7:1) is shown too.

How the contrast ratio works

The ratio compares the relative luminance of two colors: (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter color. Relative luminance is computed from the linearised red, green and blue channels, weighted 0.2126, 0.7152 and 0.0722. The result runs from 1:1 (identical colors) to 21:1 (black on white).

WCAG 2.1 sets these thresholds. "Large text" means at least 18pt, or 14pt and bold.

Source: W3C — Web Content Accessibility Guidelines (WCAG) 2.1