Prompt Library

Text Over Images in AI Ads: The 7 Treatments That Keep Text Readable

Portrait of Anton Tokarev, media buyer and ad researcher

Written by Anton Tokarev

Media buyer, swipe-filer, ad stealer.

I could get the words to render, style them, and place them - and still end up with an unreadable ad.

The reason was always the same: the background was fighting the text. A headline in white would sit half over a bright sky and half over a dark tree line, and the middle of every word would vanish where the two zones met. The type was perfect. The image was perfect. Together they were mush.

Here's what I finally understood: text and photo are two competing layers, and unless you build a bridge between them, one destroys the other. A dark scrim, a color-matched zone, a frosted panel, an outline - each one is a way of separating the words from the image without covering the image up.

These are the seven background treatments I prompt to keep text legible over any photo, with the exact keywords for each.

Let's build the bridge.

Why the Background Fights Your Text

A photograph varies in brightness across the frame. Text is a single color. Lay one over the other and the text disappears wherever the two match - and real photos always have a bright zone and a dark zone somewhere in them.

The Legibility Bridge: Text and photo are two competing layers - the image varies in brightness, the text is one color, so the words vanish wherever the two match. A legibility bridge is any treatment that separates them without blocking the image: a gradient scrim, a color-matched placement zone, a frosted panel, a text outline. You never just drop text on a photo - you build the bridge that lets both survive.

It's the problem the text layer contrast stage points at, solved seven specific ways - and it's the same contrast logic that makes a CTA button read.

The 7 Legibility Treatments

At a glance:

  • Solid color zone

    How it bridges
    Text sits on a clean flat area

    Use for
    most ads, clean layouts

  • Blurred background

    How it bridges
    Softens the busy area behind text

    Use for
    lifestyle, depth-of-field ads

  • Dark overlay scrim

    How it bridges
    Darkens the whole zone under text

    Use for
    busy or bright backgrounds

  • Light wash scrim

    How it bridges
    Lightens the zone under text

    Use for
    dark or moody backgrounds

  • Gradient scrim

    How it bridges
    Fades dark-to-clear over the image

    Use for
    edge-anchored text, cinematic

  • Frosted glass panel

    How it bridges
    A translucent panel behind text

    Use for
    premium, modern, editorial

  • Text outline / stroke

    How it bridges
    Separates text with an edge

    Use for
    over unpredictable backgrounds

Now the detail.

1. Solid Color Zone

The cleanest solution: place the text over a genuinely flat, single-color area of the image - a clean wall, an out-of-focus surface, an empty sky. When the background behind the text is uniform, the contrast problem disappears entirely. This is the composition-first approach: build the empty zone into the image so the text has a clean place to live.

Use
Clean minimal ad layouts, any creative where you can compose a flat negative-space zone for the text, product ads on simple backgrounds.
Avoid
The image is busy edge-to-edge with no flat zone available - then you need a scrim or a panel instead.
Prompt keywords
clean solid color zone for text placement
flat uniform background area behind headline
text over out-of-focus solid surface
empty negative space zone for text
composed flat zone in upper third for headline
Split-layout skincare ad with 'Skin that finally listens.' set in dark type on a flat off-white panel beside a bright bathroom photo
A flat panel beside the photo - perfect contrast, no overlay needed
Serum ad with 'Your skin. Finally.' and an outlined Shop Now button on a clean white block left of a golden-hour portrait
The composition builds the empty zone the text lives in

What you see: the headline sits over a genuinely flat, uniform area. There's no brightness variation behind the words, so every letter reads with full contrast. The composition built the empty zone for the text, and the text lives there cleanly.

2. Blurred Background Zone

A version of the image where the background has been thrown significantly out of focus - either through shallow depth of field or a deliberate blur, so the busy detail behind the text softens into a smooth wash. The blur doesn't remove the busy area, it simplifies it enough for the text to separate.

Use
Lifestyle ads where the background is a real scene, shallow-depth-of-field creatives, any ad where the busy area behind the text can be softened rather than removed.
Avoid
The background detail is important to the message - blurring it to solve legibility sacrifices context you may need.
Prompt keywords
heavily blurred background behind text
soft out-of-focus background zone for headline
background blurred to smooth wash behind text
shallow depth of field, blurred background for text
simplified blurred zone behind headline
Serum ad with 'Your skin. Finally.' in white over a heavily blurred golden field, the subject sharp in the centre
The background melts to a smooth wash and the headline separates
Bright interior ad with 'Real results. Real skin.' in white over a softly blurred wall beside a woman holding a cream jar
Only the zone behind the text needs to lose its detail

What you see: the background behind the text is a smooth wash of color rather than sharp detail. The scene is still there in shape and tone but simplified enough that the text separates from it - the depth-of-field solution.

3. Dark Overlay Scrim

A semi-transparent dark layer placed over the zone where the text sits - darkening the background enough that light text reads cleanly. The scrim reduces the brightness and detail of whatever is behind it without hiding the image entirely; you can still see the photo through it.

Use
Light text over a bright or busy background, any creative where the background can't be composed flat, lifestyle and outdoor ads with variable backgrounds.
Avoid
The darkening would ruin a bright, airy brand feel - a dark scrim shifts the mood heavier and cooler.
Prompt keywords
semi-transparent dark overlay behind text
dark scrim over background zone for light text
subtle dark gradient behind headline for contrast
darkened zone under text, image visible through it
light text over dark overlay scrim
Golden-hour serum ad with white headline 'Your skin. Finally.' over a darkened upper band of a sunlit field scene
A dimmed upper zone lets the white headline hold contrast
Beach sunset ad with 'Life's better outside.' in white over a subtly darkened sky and a white Shop the Collection button
Still a bright, warm ad - just dark enough where the words sit

What you see: the zone behind the text has been dimmed - you can still see the bright outdoor scene through it, but it's dark enough that the white text reads with full contrast. This is the workhorse fix for text over a bright, busy image.

4. Light Wash Scrim

The opposite of the dark scrim - a semi-transparent white or light layer placed over the text zone, lightening a dark or moody background so that dark text reads against it. The light wash preserves the atmospheric image beneath while giving dark text a bright enough zone to sit on.

Use
Dark text over a dark or moody background, evening and low-key lifestyle ads, any creative where the mood is dark but the text needs to read dark.
Avoid
Lightening the zone would break a deliberately dark, dramatic mood - a light wash lifts and softens the atmosphere.
Prompt keywords
semi-transparent light overlay behind text
light wash scrim over dark background zone
white translucent layer under dark text
lightened zone under text for dark headline
dark text over light wash scrim
Dark bathroom scene with a pale wash band across the top carrying the navy serif headline 'Your evening ritual starts here.'
A light wash band gives dark type a bright field over a moody scene
Lifestyle serum ad with a pale translucent band across the top holding the dark headline 'Your skin. Finally.'
The same fix on a warmer scene - image visible, text fully legible

What you see: the zone behind the dark text has been lightened by a semi-transparent white layer - the scene is still visible through it but bright enough that the dark headline reads cleanly. The image survives, and the text has its bridge.

5. Gradient Scrim

A scrim that fades from opaque at one edge of the image to fully transparent toward the center - most commonly a dark gradient rising from the bottom edge, so text anchored at the bottom reads against the dark while the rest of the image stays untouched. This is the cinematic solution: it's how film posters and streaming thumbnails anchor their text.

Use
Text anchored at the top or bottom edge of the frame, cinematic and premium ad layouts, any creative where the text lives at an edge and the center should stay clean.
Avoid
The text sits in the center of the frame - a gradient scrim from the edge won't reach it.
Prompt keywords
dark gradient scrim rising from bottom edge
gradient fade from dark bottom to clear center
cinematic gradient overlay for bottom text
bottom gradient scrim, text anchored below
gradient darkening at frame edge behind text
Serum ad with 'Your skin. Finally.' in white across a clean gradient sky above the subject and a white Shop Now pill below
The frame's own gradient does the work - clean sky above, subject below

What you see: the text is anchored in a zone that fades smoothly from light to dark, and the rest of the photo stays completely clean. This is the film-poster solution: anchor the text at the edge and fade a scrim to meet it.

6. Frosted Glass Panel

A translucent, frosted panel placed behind the text - blurring and lightening whatever is behind it while remaining visibly a panel with its own soft edge. Different from a flat scrim: the frosted panel is a defined shape, reading as a deliberate design element, and it carries a premium, modern, editorial quality borrowed from real interface design.

Use
Premium and modern brand positioning, editorial and app-adjacent aesthetics, any creative where the text container should read as a deliberate, high-quality design element.
Avoid
The brand is raw, casual, or handmade - a frosted glass panel reads polished and digital-premium, a mismatch for a rustic register.
Prompt keywords
frosted glass panel behind text
translucent frosted panel, soft blur behind
frosted glass card with text, premium UI
blurred glass panel with defined soft edge
frosted overlay panel, modern editorial
Frosted glass card with 'The routine you've been missing.' and a Shop Now button floating over a blurred living-room scene
A defined frosted card reads as a deliberate, premium design element
Wide frosted glass panel holding 'Your skin. Finally.' over a golden-hour portrait of a woman with a serum jar
The photo stays visible through the panel - softened, never hidden

What you see: a defined translucent panel sits behind the text - the image is visible through it but blurred and lightened, and the panel has its own soft edge that reads as a deliberate shape. It's the frosted-glass look of modern interfaces, and it makes the text container itself a premium design element.

7. Text Outline / Stroke

A thin outline or stroke around each letter - usually the opposite tone to the text fill, so a white letter gets a thin dark edge. This lets the text separate from any background regardless of what's behind it, because the outline maintains contrast against both bright and dark zones. It's the most robust fix for a truly unpredictable background.

Use
Text over a background that varies from bright to dark within the same zone, sport and bold graphic ads where a heavy outline suits the register.
Avoid
The brand is minimal or premium - a heavy text outline reads as loud and can feel cheap in a restrained aesthetic.
Prompt keywords
white text with thin dark outline
text with stroke edge for contrast
outlined text separating from any background
bold text with contrasting outline, readable anywhere
text stroke maintaining contrast over variable background
Mountain trail running ad with bold white 'GO FURTHER.' outlined in dark, readable across bright sky and dark rock alike
The stroke holds contrast across a bright-to-dark background in one word

What you see: each letter has a thin edge in the opposite tone, so it reads with contrast whether it's sitting over the bright sky or the dark tree line within the same word. The robust fix for the unpredictable image.

Visual Comparison: The Same Headline, Seven Treatments

Same base image - a golden-hour lifestyle scene - with "Your skin. Finally." over it, treated seven ways.

Untreated: the headline half-vanishes where the bright sky meets the dark background. Unusable.

Solid zone / blurred: the words separate cleanly once the background behind them is flat or softened.

Dark scrim / light wash: dimming or lightening the zone gives the single-color text a consistent field to read against.

Gradient scrim: anchored at the edge, the text reads against the fade while the center stays clean and cinematic.

Frosted panel: the text sits on a premium defined shape, reading as designed.

Outline: the text survives the bright-to-dark shift within its own zone, no scrim required.

Golden-hour serum ad with 'Your skin. Finally.' and a white SHOP NOW button reading cleanly over the treated background
Same words, same image - the only variable is the bridge between them
The same golden-hour ad with the headline lifted only by a soft drop shadow behind the letters
Shadow only - the lightest-touch bridge of the set
Wide field scene at golden hour with 'Live lighter.' in white type placed in the smooth, empty pale sky
Or skip the treatment entirely and compose an empty zone for the words

Same words, same image. The only variable is the bridge between them - and it's the difference between an unreadable ad and a finished one.

The Full Text-on-Background Stack

The legibility treatment goes with the text layer, near the end of the prompt:

Prompt keywords
Golden-hour lifestyle ad, a woman outdoors backlit by warm low sun, the
headline "Your skin. Finally." in a clean white sans-serif anchored at the
bottom of the frame, a soft dark gradient scrim rising from the bottom edge
so the text reads with full contrast while the center of the image stays
clean, a thin subtle dark stroke on the text for extra separation, a solid
rounded "SHOP NOW" button below the headline with soft depth, clear type
hierarchy, photorealistic lifestyle photography, professional ad design
Serum ad with a bold white headline, subhead and white Shop Now pill reading cleanly over a soft-blurred interior scene with a gradient band at the base
Blur, gradient band and soft shadow stacked - every word reads

A gradient scrim to anchor the text, a subtle stroke for insurance, and a clean center - the full legibility bridge built into the prompt. The words read cleanly and the image survives intact.

Conclusion: Never Just Drop Text on a Photo

Four to lock in:

1. The background is always fighting the text. A photo varies in brightness; text is one color. Wherever they match, the words vanish.

2. Build a bridge, don't cover the image. A scrim, a color-matched zone, a frosted panel, an outline - each separates the text without hiding the photo.

3. Match the bridge to the mood. Dark scrim for light text on bright scenes, light wash for dark text on moody ones, gradient for edge-anchored cinematic text, frosted panel for premium.

4. The outline is the insurance. When the background varies bright-to-dark within the same zone, a thin stroke keeps the text legible where no single scrim can.

The rule of thumb that closes the module: you never just drop text on a photo - the image will fight it and win. Text and background are two competing layers, and you have to build a bridge between them: a scrim, a matched zone, a panel, an outline.

So the move: take an ad where the headline half-disappears into the background and regenerate it with a dark gradient scrim rising from the edge behind the text, plus a thin stroke. Same headline. My bet is every word reads cleanly now - because you stopped dropping text on the photo and started building the bridge.

Related: photo composition, prompt structure, and the full AI ad prompt library.

Steal my ad concept & hook library

Every prompt, archetype, and hook I use in my own accounts. Updated weekly.

Join the free Skool community