piko

WCAG Contrast Checker

Check two colors against WCAG contrast thresholds for text and interface components.

Runs on your device. Nothing you add is uploaded.

Contrast ratio
15.17:1
Rounded for display
Text preview
Large text
Normal text
5 rows
WCAG checkMinimumResult
AA normal text4.5:1Pass
AA large text3:1Pass
AAA normal text7:1Pass
AAA large text4.5:1Pass
AA non-text contrast3:1Pass

How to use WCAG Contrast Checker

  1. Choose the foreground and background colors.
  2. Read the ratio and compare it with the relevant threshold.
  3. Adjust the colors until the relevant row passes.

Questions

What counts as large text?
WCAG generally treats text as large at 18 points (24 CSS pixels), or 14 points (about 18.7 CSS pixels) if bold.
How are pass and fail calculated?
The comparison uses the full ratio. A rounded result can look like the threshold even when the exact ratio is slightly below it.
What should I check for gradients?
Compare the text against the background where it appears, including the area with the lowest contrast.

How this works

Calculates the WCAG 2 relative luminance and contrast ratio for two opaque sRGB colors.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy