ToolBoxOnline

Color Contrast Checker

Check WCAG 2.1 contrast ratios between two colors. Ensure your text meets AA and AAA accessibility standards with instant pass/fail results.

Share this tool

You picked a light gray text on a white background. It looks fine to you, but someone with low vision can't read it. Paste your colors and see instantly: Pass or Fail, with the exact contrast ratio.
The quick brown fox jumps over the lazy dog.
Contrast Ratio
21.00:1
AA Normal
4.5:1
Pass
AA Large
3:1
Pass
AAA Normal
7:1
Pass
AAA Large
4.5:1
Pass

How to Use This Tool

  1. Pick a foreground (text) color and a background color using the color pickers or by typing hex codes.
  2. See the live preview of how your text looks on the background.
  3. Check the WCAG results: AA Normal (≥4.5:1), AA Large (≥3:1), AAA Normal (≥7:1), AAA Large (≥4.5:1).
  4. Adjust colors until all required levels pass.

Related Tools

Frequently Asked Questions

What is WCAG contrast ratio?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and background colors. AA Normal requires 4.5:1 for body text. AA Large requires 3:1 for text larger than 18px or bold 14px. AAA levels are stricter.

What is a good contrast ratio?

For normal body text, aim for at least 4.5:1 (AA). For large text or headings, 3:1 (AA Large) is acceptable. For the best accessibility, target 7:1 (AAA).

Does this tool work with hex codes?

Yes. You can type any 6-digit hex code (like #3B82F6) or use the native color picker. Both inputs are synchronized.

Is my color data sent anywhere?

No. All calculations happen in your browser. No data is sent to any server.