AZ Tools

Color Contrast Checker

Color

Pick a foreground and background color to see the exact WCAG contrast ratio, with instant pass/fail for AA and AAA at both normal and large text sizes. A live preview shows how the combination really looks. Runs entirely in your browser.

Foreground (text)
Background
Contrast ratio
14.68:1
AA normal✓ Pass
AA large✓ Pass
AAA normal✓ Pass
AAA large✓ Pass
Preview

The quick brown fox jumps over the lazy dog

The quick brown fox jumps over the lazy dog

How to use

  1. Choose a foreground (text) color.
  2. Choose a background color.
  3. Read the contrast ratio and AA/AAA results.
  4. Check the live preview for readability.

Frequently asked questions

What ratios do AA and AAA require?
AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1 respectively.
What counts as large text?
Roughly 18pt (24px), or 14pt (18.66px) bold, and larger.
How is the ratio calculated?
From the relative luminance of each color using the official WCAG 2 formula.
Does it support alpha?
No, it compares solid colors. Flatten any transparency against its real background first.

Related tools