Framing Images With Flat Colors
One of the simplest methods for keeping text legible is to frame the image within a flat-colored shape that also carries the text. This pattern appears frequently in thumbnails and card-based layouts, where the image and its associated label need to feel like a single unit.
Real-world implementations can be seen on the July Fund site, which applies the framing approach to its mission cards.
ABL Space Systems uses a similar device to keep its technical copy distinct from the photography behind it.
If you are exploring this layout direction, two resources worth studying are Bento Grids — a curated set of tile-based layouts popularized by Apple that organize key takeaways visually — and Godly’s grid-style website collection, which aggregates strong examples of grid-driven design.
Working With Soft-Colored Gradients
When the standard black or white gradient overlays clash with your visual style, the soft-colored gradient alternative can be effective. This technique blends two or more colors into a gentle transition, and it is widely used in modern site and page designs that want a creative edge without losing readability.
Porto 128 demonstrates this approach on its product pages.
Perfect Day also relies on colored gradients to preserve contrast between its copy and background imagery.
Several generators can help you tune these gradients, including the Gradient Maker from Angry Tools and the CSS Gradients Generator from Designstripe.
Adjusting Typography And Placement
Meeting the WCAG 1.4.3 contrast minimum can still fail even after trying overlay, scrim, or strip techniques. In those scenarios, one of the safest paths is to change the text style and to position the text outside the image area entirely.
Typography tweaks — larger or smaller sizes, bold versus light weights, adjusted margins and letter spacing — can be layered to create impact while keeping the text fully accessible. Placement also gives you flexibility: text at the top, bottom, left, or right of an image can shift the reading experience. When the text sits outside the image boundary, you also gain the benefit of true text that can be zoomed and read by assistive technology.
Bolimówek pairs large typography with imagery to guide the user.
My Toronto Condo positions its header text clear of its leading photographs.
Scribely also manages the balance between image focus and text prominence.
Chris Coyier’s CSS-Tricks article "Design Considerations: Text on Images" is a useful reference for this topic.
Relying On Solid Shapes
Sometimes a single solid shape is all that is required. The key is to create harmony between the text color and the shape used as its background. Once that balance is found, readability improves markedly without any additional treatment.
The Female Gaze is a good example of this technique in practice.
Pantoute also uses bold color blocks behind its text to keep copy readable.
If you want to dig deeper into why this works, three reads are particularly relevant: Rob Postema’s piece on "the psychology behind shapes and colors," Pranav Ambwani’s guide on "turning color theory into CSS," and Canva’s "guide to background design".
Choosing Colored Or Gradient Backgrounds
If none of the overlays or placements work, you can always drop the image and use solid colored backgrounds or gradient backgrounds instead. This ticks the contrast boxes and gives screen readers real text to parse, which is preferable for visually impaired users. With this approach you also gain full control over text size, screen optimization, and zoom without any image quality loss, and you can adapt colors or styles to meet user preferences.
Bou demonstrates this with its full-width colored sections.
Studio 5B uses a palette of flat colors behind its content blocks.
Koryun takes the gradient route with deep color transitions behind its typography.
For implementation, the CSS Gradients Generator is handy, and Sarah Fossheim’s tutorial "How to add a gradient overlay to text with CSS" is worth a bookmark.
Preferring Real Text
Across all ten techniques reviewed in this series, the most dependable choice remains using actual text. Text over images adds a natural benefit in visual storytelling, but small text over busy imagery can become compressed and unreadable for those with low vision. When you need to meet WCAG 2.1 contrast requirements reliably, skipping the image overlay and using real text is the best path — it guarantees contrast, supports zoom, and works with assistive technologies out of the box.
Why Real Text Wins
When you lay text over an image, the most accessible choice is to use actual text rather than flattening it into the image itself. Real text scales cleanly at any zoom level without pixelation, and screen readers and other assistive technologies can parse it directly. It also gives you full control over contrast and styling through CSS, so you can adjust the presentation to keep content legible without touching the image file.
For a deep dive into the CSS side of this pattern, Ahmad Shadeed’s tutorial, “Handling Text Over Images in CSS,” walks through practical techniques for positioning and styling text over imagery.
Keep Accessibility In From The Start
Accessibility should be baked into the design process, not retrofitted at the end. Every decorative choice — overlay opacity, gradient placement, font weight — has an impact on whether users can actually read the message. Treating those decisions as part of the core design work, rather than a QA checklist item, produces better outcomes for everyone.
Tools For Checking Your Work
Several utilities can help you validate contrast and overlay choices while you design:
- Should I Use Carousel?
- Test Your Background Image Accessibility
- Rainbow Contrast Checker
- Tanagaru Contrast Finder
- Optimal Overlay Finder
- TPGi Color Contrast Checker
- Colorable
- Spelll (Figma)
- Contrast (Figma)
- Juliette (Figma)
- Accessibility And Interactions Documentations Annotation Kit (Figma)
Further Reading On Accessible Imagery And Color
If you want to go deeper, the following resources cover the surrounding topics of contrast, color theory, and accessible markup:
- “Creating An Accessible Image Carousel,” by Aleksandr Hovhannisyan
- “Why Is It Important for Accessibility to Use Actual Text Instead of Images of Text?” (Bureau of Internet Accessibility)
- “Ensure High Contrast for Text Over Image,” by Aurora Harley (NN/g)
- “Design Considerations: Text on Images,” by Chris Coyier (CSS-Tricks)
- “10 Typography Tricks to Make Your Text Much More Readable,” by Igor Ovsyannykov
- “The UX Designer’s Guide to Typography,” by Molly Fitz-Patrick (IxDF)
On documentation and annotation workflow:
- “A Designer’s Guide to Documenting Accessibility & User Interactions,” by Stéphanie Walter
- “Accessibility Guidelines,” by Ana Valjak (Figma Community)
For color and contrast foundations, including WCAG’s 1.4.3 Contrast (Minimum) criterion, see these articles:
- “The psychology behind shapes and colors,” by Rob Postema
- “Apply color theory to your designs,” by Pranav Ambwani
- “Your ultimate guide to background design” (Canva)
- “Tips for Overlaying Text on Imagery” (Getty Images)
- “Color Contrast And Why You Should Rethink It,” by Cathy O’Connor
- “Improving The Color Accessibility For Color-Blind Users,” by Adam Silver
- “Your Image Is Probably Not Decorative,” by Eric Bailey
- “The Realities And Myths Of Contrast And Color,” by Andrew Somers
- “The Underestimated Power Of Color In Mobile App Design,” by Nick Babich
- “Accessible Images For When They Matter Most,” by Carie Fisher
Smashing Magazine also maintains curated topic pages on Accessibility, Usability, and UX.
(yk)


