How to Check Color Contrast for WCAG Accessibility

Updated September 8, 2026

Just need the tool?Color Contrast Checker (WCAG) โ†’

Color contrast decides whether real people can read your text. Someone with low vision, aging eyes, or a phone screen in bright sunlight needs enough separation between text and background to make out the words. WCAG, the Web Content Accessibility Guidelines, turns that judgment into a single number: the contrast ratio. This guide explains what the ratio means, how to check it, and where the number stops being the whole story.

What the contrast ratio actually measures

The WCAG contrast ratio compares the relative luminance (perceived brightness) of two colors. It runs from 1:1 (identical colors, invisible) to 21:1 (pure black on pure white). It is calculated from the sRGB values of each color using the official WCAG 2.x formula, not by eyeballing hue. That matters because two colors can look bold and different to you while still failing for someone else, and colors can be very different in hue but similar in brightness, which reads as low contrast.

The thresholds you need to hit depend on the text:

AA is the level most organizations and accessibility laws target. AAA is stricter and often reserved for body text in high-stakes contexts.

How to check a color pair

The Color Contrast Checker (WCAG) on Every Boring Tool does this in the browser with no upload or sign-up. Here is the flow:

  1. Enter your text (foreground) color. You can type a hex code like #1A1A1A, an rgb() or rgba() value, or a common name like black. A native color picker sits next to the field if you would rather click.
  2. Enter your background color the same way.
  3. Read the contrast ratio it shows, for example 7.14:1.
  4. Check the Pass/Fail tiles for normal text AA and AAA, large text AA and AAA, and UI and graphics. Each tile names the threshold it is testing against.
  5. Use the live preview box to see large and normal text samples rendered in your actual colors.
  6. Use Swap colors to flip foreground and background, or Copy report to grab a plain-text summary of the ratio and every pass/fail result to paste into a ticket or design note.

If a value is not a valid color, the tool tells you instead of guessing, so a typo will not silently produce a wrong number.

A useful detail: translucent text

If your text color has an alpha channel (a translucent rgba() or an 8-digit hex), raw luminance would be misleading, because the background shows through. The checker composites the translucent foreground over the background first, then scores the resulting solid color. The background itself is treated as opaque. This gives you the ratio a viewer actually sees, which is the honest way to score semi-transparent text.

Honest limits to keep in mind

A passing ratio is necessary, not sufficient. The number cannot see your design, so treat it as a floor, not a finish line.

When a different approach fits better

Use this checker when you have specific color values and want a fast, private, authoritative yes or no. It is ideal while picking palette tokens, reviewing a component, or settling a design debate.

Reach for something else when your question is broader. To find every failing element on a live page at once, use an automated scanner or a browser devtools accessibility audit that crawls the rendered DOM. To design a whole palette so combinations pass by construction, a dedicated palette generator with built-in contrast constraints saves round trips. And nothing replaces testing with real assistive technology and real users, which catches problems no ratio ever will.

The short version

Check the contrast ratio for every text-and-background pair, aim for at least AA (4.5:1 normal, 3:1 large and UI), and prefer AAA for long-form reading. Test the worst case, not the average. Then remember the number is a minimum bar for one narrow thing, and back it up with sensible type, non-color cues, and human testing.

Do it now โ€” free and private

The tool runs entirely in your browser: nothing you add is uploaded, and there is no sign-up.

Color Contrast Checker (WCAG) โ†’

Related tools

Color PickerColor Blindness SimulatorColor Converter