Text Contrast in Ads: How to Make Every Word Readable

Text contrast in ads explained: WCAG 4.5:1 and 3:1 ratios, scrims, bands and shadows for text on photos, grayscale and glare checks, and color-blind-safe pairs.

Text contrast in ads is the difference in brightness between your words and whatever sits behind them, and it decides whether people can read your ad in the second they give it. Measure it as a contrast ratio: aim for at least 4.5:1 for normal text and 3:1 for large, bold headlines, the thresholds set by the Web Content Accessibility Guidelines (WCAG). When text sits on a photo, test the lightest (or darkest) spot behind the letters, not the average, and fix failures with a scrim, a solid band, a shadow or a different text color. This guide explains how the ratio works, how to fix text on photos, and how to check every ad before it goes live.

Text contrast in ads example: gold serif headline VIP Early Access and Shop 48 Hours Before Everyone Else on black satin, with an Unlock Now button
Gold on near-black measures about 7.5:1, comfortably above both thresholds. Template: VIP Early Access

Our ad design tips cover contrast as one of ten principles in a few lines. This post goes deeper: the numbers behind it, the specific techniques for putting text on photos, and the conditions (small screens, glare, color blindness) that make a design that looked fine on your monitor fail in the feed.

Contrast Ratio, Explained

A contrast ratio compares the relative luminance (perceived brightness) of two colors. It runs from 1:1, where the two colors are identical, to 21:1, which is pure black on pure white. The formula is (lighter luminance + 0.05) divided by (darker luminance + 0.05), where luminance weights green most heavily, red less and blue least, because that is how human eyes respond to light.

That weighting explains a lot of everyday surprises. Saturated yellow is very bright, so white text on yellow almost disappears. Saturated blue is dark, so white on blue reads well. Two colors can look completely different in hue and still have nearly the same luminance, which means a low ratio.

The two numbers to remember

Text typeWCAG AA minimumWCAG AAA (enhanced)
Normal text (body copy, small print, prices in a line of text)4.5:17:1
Large text (about 24px regular, or about 18.66px bold, as displayed)3:14.5:1
Graphics and UI shapes, such as a button outline against the background3:1No separate level

WCAG was written for websites and apps, but it is the best yardstick for ads too: a stable, published standard that gives you a number instead of a hunch. Ratios are not rounded up, so 4.49:1 does not pass 4.5:1.

The catch for ads: "large" means large on the screen

The size thresholds refer to how big the text is when someone sees it, not how big it is in your design file. An ad image is almost always scaled down. A headline that is 80 pixels tall in a 1080 by 1080 canvas might be around 25 pixels tall when the ad fills a phone screen, and far smaller in a sidebar or a grid of results. So a sensible rule for ads is:

  • Headlines that are big and bold can use the 3:1 large-text threshold, as long as they stay big at the smallest size the ad will run.
  • Everything else, including supporting lines, disclaimers, prices set in a sentence and button labels, should meet 4.5:1.
  • If in doubt, treat text as normal size. Aiming higher than the minimum is never the wrong call in a crowded feed.

A worked example

Say your brand color is a bright orange, #FF7A00, and you want white text on it. That pairing measures about 2.6:1. It fails even the 3:1 large-text bar, even though it looks punchy on a big monitor. Keep the hue and darken it to roughly #BD5B00 and white text reaches 4.5:1. The color still reads as your orange, and now every word on it is legible. The free text contrast checker does this adjustment for you: enter the two colors and it suggests the nearest passing shade.

Text on Photos: Five Ways to Make It Readable

Flat colors are easy: one ratio and you are done. Photos are the hard case, because the background changes under every letter. A white headline can pass over a dark doorway and fail over a bright window two words later. The rule is to measure the worst spot: for light text, the lightest area behind any letter; for dark text, the darkest. Then pick one of these fixes.

1. Scrims and gradient overlays

A scrim is a semi-transparent layer of black (or white) placed over the photo, often as a gradient that is strongest where the text sits and fades out elsewhere. It lowers the brightness of the whole area behind the text while keeping the photo visible.

Here is how the math plays out. Say the brightest patch behind a white headline is a light sky, around #C8C8C8. White on that measures about 1.7:1, which is unreadable. A 30% black overlay darkens the patch to about #8C8C8C and gets white text to roughly 3.4:1, enough for a big headline. A 40% overlay reaches about 4.4:1, just short of 4.5:1. A 50% overlay brings it to about 5.9:1, which clears the bar for smaller text too. The lesson: estimate opacity from the worst spot, then add a margin, because photos rarely have one flat tone.

Business loan ad where the storefront photo fades into a light gradient at the top so the dark navy headline and rate details stay readable
A light scrim works too: the photo fades to near-white behind dark navy text. Template: Business Loan

Scrims work in both directions. In the loan ad above, the storefront photo fades into a pale gradient at the top, and the dark navy headline sits on it at well over 4.5:1. Choosing a light scrim with dark text is often the better match for bright, airy photography.

2. Solid bands and panels

The most reliable fix is to take the text off the photo entirely: a solid strip across the top or bottom, a panel down one side, or a box behind the headline. You check one flat color pair and you know the result. Bands also give the layout structure, separating "the picture" from "the message."

Meal kit banner ad with a salmon bowl photo on the left and a solid olive panel on the right holding the white Dinner in 20 Minutes headline and a Try Free button
A solid side panel keeps the photo clean and the headline on one flat color. Template: Display Banner

In the meal kit banner, white on that olive panel measures roughly 3.8:1. That passes 3:1 for the very large headline. If you added a line of small body copy to the same panel, it would need a darker panel or darker text to reach 4.5:1. This is the kind of detail that is invisible on a design monitor and obvious on a phone.

3. Text shadows and outlines

A soft, dark shadow directly behind light letters creates a thin zone of contrast around every stroke, so the edges of the text stay crisp even where the photo is bright. Use a shadow that is tight and diffuse rather than a hard offset drop shadow, which tends to look dated and can make letters look doubled at small sizes. A thin outline does a similar job for very bold display type.

One caution: contrast checkers measure the text fill against the background, and they do not account for shadows. A shadow helps real-world legibility, but if the fill fails badly against the photo, the shadow is carrying the whole load. Treat shadows as a boost on top of reasonable contrast, not a substitute for it.

4. Blur behind the text

Blurring the area behind the text, or using a shallow depth of field so the background is soft, removes the fine texture (leaves, brickwork, patterned fabric) that makes letters hard to pick out. But blur does not change brightness. A blurred bright sky is still a bright sky. Blur fixes busyness; it does not fix low contrast. Pair it with a scrim or a darker area when the ratio is too low.

5. Move the text, or choose a different photo

Often the simplest fix is placement. Most photos have a calm region: an empty wall, a dark floor, open sky, a plain tabletop. Putting the headline there costs nothing. If you control the photography or generate the image, plan for it up front: leave negative space where the text will go. When prompting an AI image generator, say so explicitly, for example "dark, uncluttered area in the top third for a white headline." Our guide to AI image generators that handle text covers how to get the words themselves rendered cleanly, and how to write ad prompts shows how to describe layout.

TechniqueBest forWatch out for
Scrim or gradientKeeping the full photo visible behind a headlineToo much opacity makes the image look muddy
Solid band or panelGuaranteed results, offers with several lines of textCan feel boxed in if the band is too heavy
Shadow or outlineBig, bold display type over varied photosNot counted by checkers; hard shadows look dated
BlurBusy, textured backgroundsDoes not change brightness on its own
PlacementPhotos with a natural calm areaCalm areas shift when the ad is cropped for other sizes

Check It in Grayscale

The fastest sanity check for any ad is to remove the color. Desaturate the image in any editor, or turn on a grayscale filter in your phone's accessibility settings, and look again. Grayscale shows you luminance directly, which is what the contrast ratio measures. If the headline melts into the background in grayscale, it has a contrast problem, no matter how striking the colors looked.

Grayscale is especially good at exposing two common traps: bright hue on bright hue (white on yellow, white on light teal, yellow on light green) and dark hue on dark hue (red on black, navy on dark green). Both can look vivid in color and turn into a single flat gray when the color is removed.

Small Screens, Glare and Dark Feeds

The ratio thresholds are minimums for good viewing conditions. Ads are rarely seen in good viewing conditions. Plan for these:

  • Small and scaled down. Thin strokes lose contrast as text shrinks, because anti-aliasing blends the edges of each letter into the background. Bold weights and simple sans-serif fonts hold their contrast better than light or script fonts.
  • Glare and low brightness. Sunlight on a screen adds reflected light to everything, which compresses dark and mid tones together. People also dim their screens to save battery. A pairing that measures 4.6:1 can effectively feel much weaker outdoors. If the ad matters, aim well above the minimum for anything important, such as the price or the offer.
  • Light and dark feeds. Your ad sits next to the app's own interface, which may be white or near-black depending on the viewer's settings. A pale ad with pale text can blur into a light feed, and a dark ad can lose its edges in dark mode. Contrast between the ad and its surroundings matters for stopping the scroll; contrast inside the ad matters for reading it.
  • Interface overlays. In vertical placements the app draws its own text and buttons over the edges of your image. Keep your text out of those areas so it does not collide with theirs. The free safe zone checker and our Facebook ad image guidelines help with that.
Gym membership ad with a red Join the Movement headline and white $29/mo No Contract text on a dark gym background, above an athlete lifting a barbell
White on a near-black background holds up in glare and at small sizes. Template: Gym Membership

Color-Blind-Safe Pairings

Color vision deficiency affects a meaningful share of people, more often men, and the most common forms make reds and greens hard to tell apart. The good news is that contrast ratio is based on luminance, not hue, so a pairing that passes the ratio is readable for color-blind viewers too. Problems arise when a design relies on hue alone.

  • Red text on green (or green on red). A pure red and a mid green can measure under 1.5:1. To a viewer with red-green color blindness, the text effectively vanishes. Avoid putting these two hues against each other at all.
  • Meaning carried by color only. A red "old price" next to a green "new price" only works if people can tell the colors apart. Add a strikethrough, a label or a size difference so the meaning survives without color.
  • Safer hue pairs. Blue with orange, blue with yellow, and dark purple with yellow tend to stay distinct across the common types of color blindness. They still need a passing ratio; the hue pairing just keeps them distinguishable.
  • Black or white text. On any brand color, testing black and white text first is a quick way to find the most legible option. On bright colors (yellow, light orange, light teal), black text usually wins by a wide margin.

If you are choosing ad colors from a photo or a brand asset, the free color palette extractor pulls exact hex codes you can drop straight into a contrast check.

How to Check Contrast Before You Launch

  1. List every text element. Headline, supporting line, price, button label, small print. Each one is a separate check, because each sits on a different part of the image.
  2. Decide the threshold for each. 3:1 for headlines that stay large at the smallest placement, 4.5:1 for everything else.
  3. Sample the worst spot. Use an eyedropper on the lightest pixel behind light text, or the darkest pixel behind dark text. Do not sample the average.
  4. Run the numbers. Enter the text and background colors in the text contrast checker, or upload the ad and draw a box over the text area to get average and worst-case contrast with a suggested overlay opacity.
  5. Check in grayscale. If anything fades, fix it before going further.
  6. View it at real size on a phone. Look at the ad at the size it will appear in the feed, then turn the brightness down and look again. Better still, step outside.
  7. Check every size. A square, a vertical and a landscape version crop the photo differently, so text that sat on a dark area in one may land on a bright area in another.

Quick fixes when a check fails

ProblemFastest fix
Brand color is too bright for white textDarken the brand color a few steps, or switch to black text
Headline passes, small text failsMove small text to a band, or make it darker or larger
Text crosses light and dark areas of a photoAdd a gradient scrim, or move the text to the calm area
Busy texture behind textBlur the background and add a light scrim
Two hues that look different but read as one grayChange the lightness of one color, not just the hue
Button label hard to readIncrease the ratio between label and button, and make sure the button stands out from the image

If you are unsure whether a fix is worth it, test it: run the same ad with a darker scrim or a solid band against the original. Our guide to ad creative testing shows how to set up that comparison cleanly.

Frequently Asked Questions

What is a good contrast ratio for ad text?

At least 4.5:1 for normal text and 3:1 for large, bold headlines, following the WCAG AA guidelines. Because ads are scaled down and often viewed in poor conditions, aiming higher than the minimum for important text is a good habit.

How do I make text readable on a busy photo?

Add a semi-transparent dark (or light) scrim behind the text, put the text on a solid band, move it to a calm area of the photo, or add a soft shadow. Blur reduces busyness but does not raise contrast on its own, so combine it with one of the other fixes.

Is white text on yellow ever OK?

Rarely. Saturated yellow is so bright that white text on it measures well under 3:1. Use black or very dark text on yellow, or darken the yellow toward gold or amber if you need white text.

Does a text shadow count toward the contrast ratio?

Not in a standard contrast check, which compares the text fill with the background. A shadow does help real-world legibility, so use it as an extra safety margin on top of reasonable contrast.

How do I check contrast if my text is part of the image?

Use an eyedropper to sample the text color and the lightest or darkest spot behind it, then enter both in a contrast checker. The free text contrast checker also lets you upload the finished ad and measure contrast directly over the text area.