Color Contrast Checker for Ad Text
Free color contrast checker for ads. Test text and background colors against WCAG AA and AAA, check text on image contrast, and get a passing color instantly.
Check text and background colors against WCAG, or test a headline on your actual ad image, and get a fix when it fails.
How to use the Text Contrast Checker
- Enter your colors. In Two colors, pick or paste the text color and background color as hex codes. Use the swap button to test the reverse pairing, such as a CTA button.
- Read the WCAG results. Check the contrast ratio and the AA and AAA pass or fail rows. Body copy needs 4.5:1; large headlines need 3:1.
- Fix a failing pair. Choose a target level and click Use it on the suggested text or background color. The tool keeps the hue and changes lightness as little as possible.
- Test text on your ad image. Open Text on image, upload your ad or try the sample, then drag a box over the area where your headline sits and set the text color.
- Apply the suggested overlay. If the worst-case contrast fails, preview the suggested overlay or scrim opacity, switch to black or white text, or move the box to a calmer area.
What a color contrast checker measures
A color contrast checker compares how bright two colors are and expresses the difference as a ratio from 1:1 (identical) to 21:1 (black on white). It is the standard defined by the Web Content Accessibility Guidelines (WCAG 2.x), and it is the most reliable quick test for whether people can actually read the text in your ad, on a phone, in sunlight, while scrolling.
The ratio is based on relative luminance, not on how different the hues look. Each sRGB channel is converted to linear light (values at or below 0.04045 are divided by 12.92, the rest use ((c + 0.055) / 1.055) to the power 2.4), then weighted: luminance = 0.2126 R + 0.7152 G + 0.0722 B. The contrast ratio is (lighter luminance + 0.05) divided by (darker luminance + 0.05). Green dominates the formula, which is why yellow looks bright and blue looks dark even at full saturation.
Worked example: white text (luminance 1.0) on a bright orange #FF7A00 (luminance about 0.35) gives 1.05 / 0.40, roughly 2.6:1. That fails even the 3:1 large-text threshold, though many ads use exactly this pairing. Darkening the orange to #BD5B00 brings it to 4.5:1 while keeping the brand hue.
WCAG contrast requirements for text
WCAG defines two levels. AA is the common baseline that most accessibility policies and laws reference; AAA is an enhanced level. Large text means at least 24px (18pt) regular, or about 18.66px (14pt) bold, at the size it is actually displayed. Ratios are not rounded: 4.49:1 fails AA for body text.
| Content | AA minimum | AAA minimum |
|---|---|---|
| Normal text (body copy, captions, fine print) | 4.5:1 | 7:1 |
| Large text (24px+, or 18.66px+ bold) | 3:1 | 4.5:1 |
| Buttons, icons, input borders (non-text) | 3:1 | Not defined |
| Logos and purely decorative text | No requirement | No requirement |
Why contrast matters more in ads than on web pages
Ad platforms do not grade contrast, but your audience does. A feed ad is seen for a second or two on a small screen, often at reduced brightness or outdoors, and often downscaled. Thin, low-contrast text that looks fine on a 27 inch design monitor becomes unreadable at 375 pixels wide. Display ads are also shrunk into small slots such as 300x250 or 320x50, where the headline may be only 14 to 18 pixels tall.
Treat 4.5:1 as the floor for anything that carries the offer: price, discount, dates, and CTA labels. Use 3:1 only for large headlines that stay large on mobile. Fine print and disclaimers are usually the smallest text in the ad, so they need the most contrast, not the least.
- Check the CTA button twice: label against the button fill, and the button against the area around it (3:1 for non-text).
- Test your brand colors once and save the passing pairs, so every new creative starts accessible.
- Pastel and neon palettes fail most often. Mid-tone backgrounds, such as medium grey or saturated orange, are the hardest because neither black nor white text gets much above 4.5:1 on them.
Checking text on image contrast
A single background color is easy to test, but most ads place text over a photo. A text on image contrast checker has to deal with many background pixels at once. Checking only against the average color is misleading: white text over a mostly dark sky with a bright cloud can average 6:1 and still be unreadable where it crosses the cloud.
This tool reads every pixel inside the box you draw (sampled for large images) and reports three numbers: contrast against the average color, against the darkest 10 percent and brightest 10 percent of pixels, and a worst-case figure that 90 percent of the box reaches. The worst case is the one to design for. Ignoring the most extreme tenth avoids failing a creative because of a few anti-aliased edge pixels.
WCAG itself does not define a method for text over images, so any image check is an estimate. A strict reviewer will look at the lowest contrast point the text actually touches. If you are close to the threshold, add a little more overlay than the minimum.
How to fix low contrast without redesigning the ad
Start with the smallest change that passes. In order of how much they alter the look of the ad:
- Nudge the lightness: keep the hue and saturation, darken or lighten the text or background until it passes. The suggestion in this tool does exactly that.
- Switch to black or white text: on light photos black often passes where white fails, and the reverse on dark photos.
- Add a gradient overlay or dark wash: a black layer at 20 to 50 percent opacity over the image or the lower third. The tool calculates the exact percentage needed for the area you selected.
- Use a scrim: a solid or semi-opaque box or pill behind the text. It darkens only the text area, so the product photo stays untouched.
- Add a text shadow or outline: helps separate letters from busy detail, but WCAG measures text against the background, so use it alongside one of the fixes above.
- Move the text: place the headline over sky, a wall or other even area instead of across detailed parts of the image.
Frequently asked questions
What is a good color contrast ratio for ad text?
Aim for at least 4.5:1 for anything people must read, such as the offer, price and CTA. Large headlines of 24px or more (or 18.66px bold) can go down to 3:1 under WCAG AA. 7:1 meets AAA and is a safe target for small text and disclaimers.
How does this color contrast checker calculate the ratio?
It uses the WCAG 2.x formula: each color is converted to relative luminance from linearized sRGB values weighted 0.2126 red, 0.7152 green and 0.0722 blue, and the ratio is (lighter + 0.05) / (darker + 0.05). Results are truncated, not rounded, so a pair shown as 4.49:1 fails AA.
How do I check contrast for text on an image?
Use the Text on image tab: upload your ad, drag a box over the area where the text sits and set the text color. The tool compares the text with every sampled pixel in the box and reports a worst-case ratio that 90 percent of the area reaches, plus the overlay opacity needed to pass.
Does Facebook or Google reject ads with low contrast?
Generally no. Ad platforms review policy and text content, not contrast ratios, though rules change over time. Low contrast mainly costs you attention and clicks, and it can conflict with accessibility requirements that apply to your brand or industry.
Is white or black text better on a colored background?
Whichever gives the higher contrast ratio, which depends on the background's luminance rather than its hue. Bright yellows, limes and light oranges usually need black text; deep blues, purples and reds usually suit white. Mid-tone colors may need the background darkened or lightened for either to reach 4.5:1.
Does a text shadow make low-contrast text pass WCAG?
Not reliably. WCAG measures the text color against the background color, and a thin shadow does not change that. A heavy outline or halo can count as the new background in some reviews, but the safer fix is an overlay, a scrim or a different text color.
Are my images uploaded anywhere?
No. The contrast checker runs entirely in your browser. Images are read and analyzed on your device and are never sent to a server.