DevToolsHub Free · Fast · 100% in your browser

Color Contrast Checker (WCAG)

Check the contrast ratio between text and background colors against WCAG 2.x AA and AAA, and get an accessible color suggestion.

Large text sample (18pt / 14pt bold)

Normal body text sample. The quick brown fox jumps over the lazy dog.

Contrast ratio4.54:1
AA normal (4.5)✓ Pass
AA large (3)✓ Pass
AAA normal (7)✗ Fail
AAA large (4.5)✓ Pass
UI components (3)✓ Pass

Suggested text color for AAA: #585858

About this color contrast checker

Check whether your text and background colors are readable for everyone. The checker calculates the WCAG 2.x contrast ratio and shows pass or fail for AA and AAA, for normal text, large text and UI components, with a live preview. If a combination fails, it suggests the nearest accessible text color.

How to use the Color Contrast Checker (WCAG)

  1. Pick or type the text color.
  2. Pick or type the background color.
  3. Read the ratio and AA/AAA results, or apply the suggested color.

Example

#767676 on #FFFFFF  →  4.54:1 (passes AA for normal text)

Frequently asked questions

What contrast ratio does WCAG AA require?

4.5:1 for normal text and 3:1 for large text (18pt, or 14pt bold) and user interface components.

What does AAA require?

7:1 for normal text and 4.5:1 for large text.

Which gray is the lightest that passes AA on white?

#767676 is the lightest gray that reaches 4.5:1 on a white background.

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕