Colors & design

Color contrast checker

Good colors should be readable. Check your text and background together.

A little more clarity.

Small tools for everyday life.

—WCAG 2.2
AA · Normal text—
AA · Large text—
AAA · Normal text—
AAA · Large text—

How it works

Color contrast checker

Choose two colors. Their relative luminances determine the WCAG contrast ratio. AA text thresholds are 4.5:1 for normal text and 3:1 for large text.

How to use this tool

  1. Enter opaque foreground and background HEX colors, or use the color controls. Compare the preview and ratio.
  2. Read the AA and AAA judgments separately for normal and large text. Use the appropriate category for the actual text size.

Understanding the result

WCAG uses a luminance ratio: AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1 respectively. Decisions use the unrounded ratio.

Worked examples

#000 / #fff → 21:1

#fff / #fff → 1:1

#777 / #fff → 4.48:1

Good to know

Large means at least 18pt, or 14pt bold. Opaque sRGB only. A passing pair does not certify an entire page’s accessibility.

Large text is at least 18 pt, or 14 pt when bold, approximately 24 or 18.67 CSS pixels. Passing this test does not certify an entire website; transparency, images and gradients are not evaluated.

A few quick answers

Why can a displayed 4.50 still fail?

The display rounds to two decimals. A true ratio just below 4.5 can look like 4.50; the pass decision uses the underlying value.

Sources and implementation

Implementation for this tool: WCAG 2.2 · sRGB

Maintained by Chpl Limited · Updated:

A little break from ads.

Choose to view a rewarded ad and get 24 ad-free hours in this browser. No payment or account required.

There are no rewarded ads available right now. All tools are still free to use.

Optional advertising is off. If enabled later, it will only load after your choice. Tool inputs are never sent to analytics.