How to Check If Your Image Colors Pass Accessibility Standards

You picked colors that looked great in the design file. Your brand blue on white, your soft gray captions, that pastel background behind your call-to-action text — all of it felt clean and modern on your monitor. Then an accessibility audit, a client review, or a legal compliance checklist flags half your palette as failing WCAG, and you're left guessing which combinations are actually the problem.

Here's what most people miss: color contrast isn't a matter of taste, it's a fixed mathematical ratio between two colors' luminance values. A combination either measures above the required threshold or it doesn't — there's no "close enough," and no amount of squinting at your screen tells you the real number. The only way to know for certain is to measure it, and once you know how, checking any text or image takes seconds.

Quick Answer

To check if your colors pass WCAG accessibility standards, calculate the contrast ratio between your foreground (text) color and background color — you need at least 4.5:1 for normal text and 3:1 for large text to pass WCAG 2.1 AA. Use a contrast checker tool to sample the exact colors from your design or image and get an instant pass/fail result, rather than estimating by eye.

What is a WCAG contrast ratio, exactly?

The Web Content Accessibility Guidelines (WCAG) define contrast as a ratio between the relative luminance — perceived brightness — of two colors. That ratio ranges from 1:1 (no contrast at all, like white on white) to 21:1 (maximum contrast, pure black on pure white). A few things make up how this is measured and applied:

The key insight: contrast ratio is calculated, not perceived. Two people can disagree on whether a color combination "looks" readable, but the ratio itself is a single objective number that either clears the bar or doesn't.

Why color contrast matters

Low contrast isn't just a cosmetic nitpick — it directly determines whether a meaningful share of your audience can actually read your content:

📊 Quick stat Insufficient color contrast is consistently found on the vast majority of home pages tested in large-scale accessibility audits, making it one of the single most common — and most fixable — accessibility failures on the web.

Step-by-step: checking your colors

  1. Identify your foreground and background colors. This is usually text color against the color or image directly behind it. For text placed over a photo, use the color directly beneath the letters, not the image's average tone.
  2. Get the exact hex codes. Use an eyedropper tool to sample colors directly from your design file or image rather than estimating — a slight shade difference can change a passing ratio into a failing one.
  3. Run the pair through a contrast checker. Enter both hex codes into a WCAG contrast checker to get the exact ratio, along with a clear pass or fail result for AA and AAA at both text sizes.
  4. Check against the right threshold. Confirm whether your text counts as "normal" (needs 4.5:1) or "large" (needs 3:1) based on its actual rendered size and weight, not how it looks in your design tool.
  5. Check text over images separately from solid backgrounds. Photos and gradients often have varying luminance across the image — sample the specific region behind your text, and check the darkest and lightest parts of that region if the background isn't uniform.
  6. Adjust and re-test. If a pair fails, nudge the lightness of one color until the ratio clears the threshold, then re-check — small shifts of a few percent in lightness are often enough without changing the color's hue or brand identity.
  7. Re-check after any design change. A new background image, a rebrand, or a theme update can silently break previously passing contrast — treat contrast checking as a step in every visual review, not a one-time task.
Try the Rebrixe Color Accessibility Checker — free Sample colors from any image or hex code and get an instant WCAG pass/fail result.
Check Colors Now →

Common mistakes that cause failed contrast

1. Judging contrast by eye instead of measuring it

A combination that looks readable on a calibrated design monitor in a dim room can measure well below 4.5:1. Contrast ratio is a fixed formula, not a visual impression — always confirm with a calculator rather than trusting your screen.

2. Sampling the wrong part of a background image

Checking contrast against the average color of a photo, rather than the specific pixels directly behind the text, gives a misleading result. A photo can have light skies and dark shadows in the same frame — the ratio only matters where the text actually sits.

3. Assuming brand colors are automatically exempt

Logos and purely decorative text are exempt from WCAG contrast requirements, but body copy, button labels, and captions rendered in brand colors are not. A brand's signature light gray or pastel accent color frequently fails contrast when used for real text.

4. Treating "large text" and "normal text" as interchangeable

A combination that passes at 3:1 because it's applied to a large heading will fail if the same colors are reused for body copy or a smaller caption. Always check the ratio against the specific size and weight the text will actually render at.

💡 Pro tip Build a short list of pre-approved, WCAG-passing color pairs from your palette — text color plus background — and reuse those combinations across designs. It's faster than re-checking contrast from scratch every time and keeps your whole site consistent.
Need the exact ratio, not just a pass/fail? Use the Rebrixe WCAG Color Contrast Checker to see the precise number for any pair.
Open Contrast Checker →

Real-world pass/fail examples

These are representative contrast ratios for common color pairings, showing how close "reasonable-looking" combinations can be to the pass/fail line:

Body text
#767676 on #FFFFFF
4.54:1
Passes AA for normal text by a narrow margin.
Caption text
#999999 on #FFFFFF
2.85:1
Fails AA for normal text, even though it looks legible.
Large heading
#767676 on #FFFFFF
4.54:1
Passes AA and AAA for large text with room to spare.
Text on photo
White text, mid-tone sky
2.9:1
Fails without a dark overlay or shadow behind the text.

The pattern here is consistent: several combinations that look perfectly readable on a typical screen sit right at or below the 4.5:1 line, which is exactly why contrast needs to be measured rather than assumed.

Comparison: WCAG levels and text sizes

WCAG defines different minimum ratios depending on conformance level and text size. Here's how the requirements break down:

Content type AA minimum AAA minimum Typical difficulty Notes
Normal body text 4.5:1 7:1 Moderate The most commonly checked and most commonly failed category
Large text (18.66px bold / 24px regular+) 3:1 4.5:1 Easier Headlines and large captions have more room before failing
UI components & graphics 3:1 Not defined Easier Applies to icons, form borders, and meaningful chart elements
Logos & decorative text Exempt Exempt N/A Brand marks and purely stylistic text are not required to pass
Text over photos/gradients 4.5:1 / 3:1 7:1 / 4.5:1 Hardest Requires checking the specific region behind the text, not the whole image

Free tools: Color Accessibility Checker & WCAG Contrast Checker

Both Rebrixe tools run entirely in your browser. Sample colors directly from an uploaded image or enter hex codes manually, and get an instant contrast ratio with a clear AA/AAA pass or fail — no account, no upload to a server, no limits.

Know in seconds if your colors pass WCAG

Sample from an image or type in a hex code — get the exact ratio and pass/fail result instantly.

Open the Color Accessibility Checker → Open the WCAG Contrast Checker →

Frequently asked questions

For WCAG 2.1 AA, normal text needs a contrast ratio of at least 4.5:1, and large text (24px+ or 19px+ bold) needs at least 3:1. For the stricter AAA level, normal text needs 7:1 and large text needs 4.5:1. Most teams target AA, since AAA is very difficult to hit with brand colors intact.
WCAG applies contrast requirements to text embedded inside images the same way it applies to live text, with one exception: logos and purely decorative text in images are exempt. If an image contains a headline, quote, button label, or any meaningful text, it needs to meet the same 4.5:1 or 3:1 ratio as text on the page.
Yes, and this is the most common reason teams get caught out. Screens, ambient lighting, and individual color perception vary a lot, so a combination that looks readable on your monitor can measure below 4.5:1 mathematically. Contrast ratio is a fixed formula based on relative luminance, not a subjective impression, so it has to be measured, not eyeballed.
Use a contrast checker that lets you sample colors directly from an uploaded image with an eyedropper, rather than guessing hex codes by eye. This gives you the exact foreground and background values used in the design, which is the only way to get an accurate ratio.
Not usually. Small adjustments — darkening or lightening a color by a few percent in lightness, adding a subtle text shadow or background overlay, or increasing font weight — often push a failing combination over the line without changing the color's identity or your brand palette.
In many regions it's both. WCAG 2.1 AA is the referenced standard in accessibility laws like the ADA (U.S.), EN 301 549 (EU), and the Accessibility for Ontarians with Disabilities Act (Canada). Even where it isn't strictly mandated, failing contrast is one of the most common reasons sites lose accessibility lawsuits or audits.
No, the required ratios (4.5:1 for normal text, 3:1 for large text) are the same regardless of light or dark theme. What changes is which colors tend to fail — dark mode designs often use low-contrast grays on near-black backgrounds that feel stylish but measure below threshold.
Contrast ratio helps everyone, including most colorblind users, since it's based on luminance rather than hue. But it doesn't fully cover color-only distinctions, like a red/green status dot with no label. WCAG separately requires that color is never the only way information is conveyed — pair it with an icon, label, or pattern.

Check your colors before they fail an audit

Both Rebrixe tools run entirely in your browser — no uploads, no account, no limits. Get an exact ratio and pass/fail result in seconds.

← Back to blogs