Skip to content
EN
English 简体中文 soon 日本語 soon
Run here 100% in your browser, no upload, no login

Color Contrast Checker

Check foreground and background colors against WCAG 2.1 AA and AAA, in any format you paste.

Aa — sample text

Contrast ratio

—

—

AA Normal

—

AA Large

—

AAA Normal

—

AAA Large

How to use it

  1. Set a foreground color and a background color — HEX, rgb() or hsl() all work.
  2. The contrast ratio appears instantly, followed by PASS/FAIL against WCAG 2.1 AA and AAA for both normal and large text.
  3. The sample chip renders real text in your chosen pair so you can judge it by eye as well as by number.

Common use cases

FAQ

Q: What are the WCAG thresholds? A: Normal text needs 4.5:1 (AA) and 7:1 (AAA); large text (≥18px, or ≥14px bold) needs 3:1 and 4.5:1.

Q: Does it handle alpha transparency? A: The checker parses solid rgb()/hsl() colors. For translucent overlays, compute the blended result first, then check the pair.

Q: Can I rely on 4.5:1 for everything? A: WCAG AA at 4.5:1 is the baseline most products target. AAA is stricter and usually applied to long body text, not decorative UI.

Used in these workflows

Your data stays on this device

Color Contrast Checker runs 100% locally. Everything you paste or drop is processed by your own browser and never transmitted. Nothing is stored on our servers — close the tab and it is gone.

Nothing you type is sent to a server, logged, or used for analytics. The page works even with your network disconnected after first load.