DevKits

Color Contrast Checker — WCAG AA/AAA Compliance, Free Online

Check color contrast between text and background colors. Shows WCAG AA and AAA compliance (normal and large text). Instant visual preview with the color pair. Free, no signup.

Last updated:

Comments

Pick text and background colors to check WCAG AA/AAA contrast compliance. Live visual preview shows the color pair in context.

The quick brown fox jumps over the lazy dog.

Contrast Ratio

12.63:1

WCAG AA

Normal: ✓ Pass (4.5:1)

Large: ✓ Pass (3:1)

WCAG AAA

Normal: ✓ Pass (7:1)

Large: ✓ Pass (4.5:1)

What is Contrast Checker?

Color contrast is the single most impactful accessibility fix for websites. WCAG 2.1 defines minimum contrast ratios: 4.5:1 for normal text (AA), 7:1 for enhanced contrast (AAA), and lower thresholds for large text. This checker calculates the relative luminance per the WCAG formula, displays the exact contrast ratio, and shows pass/fail for all four criteria (AA Normal, AA Large, AAA Normal, AAA Large).

How to check color contrast

  1. 1Enter a text color (hex) and background color.
  2. 2The ratio and WCAG compliance results appear immediately.
  3. 3The preview shows the color pair as it would render on a page.

Frequently Asked Questions

What contrast ratio is WCAG AA?

WCAG AA requires 4.5:1 for normal text and 3:1 for large text (≥18pt or ≥14pt bold). AAA requires 7:1 and 4.5:1 respectively. Our checker shows pass/fail for all four criteria.

What is a contrast ratio?

Contrast ratio measures the difference in luminance between text and background colors. A ratio of 1:1 means identical colors (invisible text). Higher ratios mean greater contrast. #000 on #fff is 21:1 — the maximum possible.

How is the contrast ratio calculated?

It follows the WCAG 2.1 formula: relative luminance of the lighter color + 0.05 divided by relative luminance of the darker color + 0.05. Relative luminance is a weighted sum of sRGB values after gamma correction.

Try Next

Meta Tag Preview

Preview how your page will appear in Google search results and social share cards on Facebook, Twitter/X, and LinkedIn. Parses <title>, meta description, canonical, and full Open Graph / Twitter Card tags with diagnostics. 100% local.

Related Tools

Reference & Guides