Color Contrast Checker

Pick foreground and background colors to instantly see the WCAG 2.1 contrast ratio and pass/fail results for AA and AAA levels.

Foreground (Text)

Background

Contrast Ratio

AA Normal 4.5:1 min
AA Large 3:1 min
AAA Normal 7:1 min
AAA Large 4.5:1 min

Live Preview

12px — The quick brown fox jumps over the lazy dog.

14px — The quick brown fox jumps over the lazy dog.

18px — The quick brown fox jumps over the lazy dog.

24px Bold — Color Contrast Checker

Summary

Pick foreground and background colors to instantly see the WCAG 2.1 contrast ratio and pass/fail results for AA and AAA levels.

How it works

  1. Choose a foreground (text) color using the color picker or type a HEX code.
  2. Choose a background color using the second color picker or HEX input.
  3. Read the contrast ratio and pass/fail badges for WCAG AA and AAA at normal and large text sizes.
  4. Use the Swap button to reverse foreground and background colors.
  5. Click Suggest Fix if any level fails — the tool nudges the lighter color lighter (or darker color darker) until the target passes.

Use cases

  • Verify UI designs meet WCAG 2.1 AA before shipping to production
  • Audit existing web pages for accessibility compliance
  • Choose accessible color palettes during brand development

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu