Why Text Over Images Fails — And How to Fix It
Placing text on top of images is a common way to make content visually engaging. The pattern works well when the text communicates the image's purpose or anchors primary navigation. But it breaks down quickly when contrast between the text and the underlying image falls below readable levels. Poor positioning and distracting image elements compound the problem.
"Because images play such an important role, often designers end up placing text over an image to leverage the attention-grabbing aspect of the photo while providing text-based content to communicate actual information. However, these endeavors commonly backfire, usually when the contrast between the text and the background is too low."
— Aurora Harley, "Ensure High Contrast for Text Over Images" (NN/g Nielsen Group)
The accessibility bar is defined by WCAG Success Criterion 1.4.3. Text over images should meet the minimum contrast ratio of:
- 3:1 for large text (above 18 pt normal, or 14 pt bold);
- 4.5:1 for body text (below those thresholds).
The same minimums apply to images of text. A few practical references for implementing these techniques in HTML and CSS are useful starting points:
- "7 Rules For Creating Gorgeous UI - Part 2" by Erik Kennedy
- "Handling Text Over Images by CSS" by Ahmad Shadeed
- "Design Considerations: Text On Images" by Chris Coyier
- "How Spotify Makes Text On Images Readable" — a Twitter thread by Addy Osmani
Overlay the Entire Image
Overlays are colored layers applied across the whole image surface. Common variants include light overlays, dark overlays, dark gradients, or colored washes. Their primary function is to reduce the visual prominence of the image and create a consistent backdrop for text, which directly improves readability and contrast.
Live Examples
Tools and Reading
- Optimal Overlay Finder — calculates the ideal overlay opacity against an image so contrast meets WCAG 2.1.
- Color Accessibility Workflows by Geri Coady — a book covering why color accessibility matters and how to work with it.
Scrim Overlays for Flexible Backgrounds
Scrims are semi-transparent gradient layers that sit between the text and the image. They are lighter and less obtrusive than full overlays, but just as effective at lifting text readability across uneven image content.
Scrims can be applied in a variety of ways, including the following:Multiple surfaces on a screen at a time can display scrims. Scrims can appear at any elevation, whether in the foreground or background.
- Darkening or lightening the surface and its content.
- Reducing the opacity of the surface and its content.
— Google Material Design
Black and white are conventional scrim colors, but other hues work just as well, provided you maintain the required contrast for the text on top.
Live Examples
Handy Resource
- Scrim That Figma Plugin — adds a scrim layer to a selected Figma frame in one click.
Strips and Highlights
One of the fastest contrast fixes is to place text on a semi-transparent dark rectangle strip instead of directly on the image. The strip can match the text width or run the full length of the image, and it doesn't have to be black. More colorful treatments are fine, but the contrast requirement between text and the strip remains non-negotiable.
Live Examples
Further Reading
- Google Material Design — Legibility Standards — covers the AA contrast requirements for normal and large text.
- "Accessible Text on Images: Nail the Contrast Ratio" by Rodney Lab — details image alt text handling, including empty alt attributes for decorative images, alongside contrast considerations.
- Web Accessibility Guidelines v1.0 (Carnegie Museums of Pittsburgh) — practical best practices for contrast ratios, avoiding color-only indicators, and accounting for color blindness.
Design Within the Copy Space
When an image naturally contains a calm, uncluttered section, that's your best spot for text. Copy space is an image area with less visual noise and enough inherent contrast to host legible text without extra treatment.
But even in copy space, you still need to measure the contrast — a calm area isn't guaranteed to pass the ratio minimum. Positioning text there only works when the text remains readable against what sits underneath it.
Live Examples
Related Resources
- "Using Space to Create a Simple and Effective Design" by Carrie Cousins — explains how intentional space aids text legibility and visual focus.
- "The Secret to Commercial Photography: Copy Space" by Great Escape Publishing — defines copy space within commercial photography and why it matters for placing text without obscuring key image elements.
Blur as a Focus Tool
Applying a blur effect to a background image is a practical way to handle busy or high-detail visuals. The technique reduces the visual noise behind your content, allowing layered text to stand out without a stark separation between foreground and background.
While the effect adds dimension and depth, it also helps maintain contrast, making it easier for users with low vision to read the overlaid content without losing the aesthetic appeal of the underlying image.
Used For Hero Headers
The blurred-background approach is a common choice for hero headers, typically paired with a strong, bold typeface. By softening the entire image, you create a neutral canvas that supports large, impactful typography, ensuring legibility remains high across different screen sizes and resolutions.
In Practice
- HLK Agency — Uses a fully blurred image behind its hero section, letting the headline take center stage without competing image detail.
- Tion Renewables — Employs selective blurring to shift focus away from background textures and toward the value proposition in its headline.
More Reading
- “Blurred Text & Images In HTML CSS (Simple Examples),” W.S. Toh — A concise, CSS-only tutorial that demonstrates how to create blurred text and images, serving as a base for more advanced implementations.
Series Progress
This set of techniques — overlays, scrims, text strips and highlights, copy space, and image blurring — address most scenarios where text and imagery meet on a landing page. The next installment will examine five additional treatments: framing the image, soft-colored gradients, text styling and positioning, solid color shapes, and using fully colored backgrounds. That part will also include a round-up of supporting tools and resources for practical application.



