Mailfois
Guides / Text on email images: contrast
Guide

Text on email images: contrast rules for words over photos

How to put a headline or button on an email image and keep it readable: the WCAG contrast ratios (4.5:1, or 3:1 for large text), how to measure contrast over a photo, how big the words must be to survive a phone screen, and when to use live text instead.

In short: words on a photo need the same contrast as any other text: at least 4.5:1, or 3:1 for large text (about 24px, or about 18.5px bold, as it appears in the email). Over a photo there's no single background colour, so measure against the worst part of the picture behind the words, not the average. If it fails, move the words to a plain area, add a shade or a panel behind them, or change the text colour. Size matters too: text baked into a 1200px image shows at about half size on desktop and under a third on a phone, so a headline needs to be big in the file. Where you can, use live text instead of words in the picture.

Hero images with a headline across them are everywhere in email, and they're one of the most common reasons an email fails an accessibility check. The rules aren't complicated; the photo is.

The contrast ratios that apply

The Web Content Accessibility Guidelines (WCAG) set the minimum contrast between text and what's behind it (success criterion 1.4.3, level AA):

TextMinimum contrastWhat counts
Normal text4.5:1Anything smaller than large text
Large text3:118pt (about 24px) or larger, or 14pt bold (about 18.5px) or larger
LogosNo minimumText that's part of a logo or brand name

These sizes are as the words appear in the email, not in the image file. WCAG also counts a background image that doesn't give enough contrast as a failure, so "it's a photo" isn't an exception.

Measuring contrast over a photo

A contrast checker needs two colours. A photo gives you hundreds. The fair way to measure:

  1. Find the part of the photo directly behind the words, not the whole image.
  2. Take its worst point: the lightest area behind dark text, or the darkest area behind light text. A sky that's mostly blue but white near the horizon is a white background if your words cross the horizon.
  3. Check the text colour against that. If it passes there, it passes everywhere behind the words.

Checking against the photo's average colour is how most failures slip through: the average of a light sky and a dark hillside can pass while half the headline is unreadable.

Ways to make it pass

  • Move the words to the plainest, most even part of the picture. Often the quickest fix.
  • Add a shade: a gradient from the top or bottom, dark under light text or light under dark text, just where the words sit.
  • Add a panel: a solid or semi-transparent box behind the words. Strongest and most reliable.
  • Change the text colour: white on a darker area, or a dark brand colour on a pale one.
  • Make it large: if the words can be large text, the target drops from 4.5:1 to 3:1.

Avoid relying on a text shadow alone: it often helps less than it seems, and in live HTML text not every inbox shows it.

How big the words must be

Text that's part of the image shrinks with it. If you save the hero at 1200px wide for a 600px email (as you should, see email hero image size), the words show at half their size on desktop and at under a third on a typical phone:

Font size in the 1200px fileOn desktop (600px)On a phone (about 340px wide)
48px24pxabout 14px
64px32pxabout 18px
84px42pxabout 24px
112px56pxabout 32px

So for a headline to stay large text (about 24px) on a phone, it needs to be roughly 84px or more in the 1200px file. Small print in an image, such as terms or prices, is almost always unreadable on a phone: put it in live text.

Live text is usually better

WCAG asks for real text rather than images of text wherever the design allows it (success criterion 1.4.5). In email there are practical reasons too:

  • Images off: some people, and some workplaces, keep images off. Live text still shows; text in a picture doesn't.
  • Dark mode: live text can change colour; words in a picture can't.
  • Translation: live text is translated with the rest of the email; a picture needs a new version per language.
  • Screen readers read live text properly, and people can select and copy it.

Live text over a background image is possible in email, but classic Outlook for Windows needs extra code (VML) to show the background. Many teams put the headline and button in live text directly under or over a plain part of the image instead.

If the words stay in the picture

  • Put every word in the alt text, not a description of the photo alone: *"Spring sale: up to 40% off bikes and kit. Shop now."*
  • Keep the call to action as a live button below the image too, so there's always something to click.
  • Check it at phone size before sign-off, not just on a big screen.

Questions

What contrast ratio does text on an email image need?

At least 4.5:1, or 3:1 for large text (about 24px, or about 18.5px bold, as it shows in the email). These are the WCAG 1.4.3 level AA minimums. Logos are exempt.

How do you check contrast for text over a photo?

Measure the text colour against the worst part of the photo behind the words: the lightest area behind dark text or the darkest area behind light text. If it passes there, it passes everywhere behind the words.

Should text be in the image or live text in an email?

Live text where you can: it shows with images off, adapts to dark mode, can be translated and is read properly by screen readers. If words must be in the image, make them large, check the contrast, put every word in the alt text and keep a live button too.

How big should text in an email image be?

Big enough to read on a phone. In a 1200px-wide image shown in a 600px email, words show at about half size on desktop and under a third on a phone, so a headline needs roughly 84px in the file to stay about 24px on a phone.

Sources

*Checked on 9 November 2026.*

Written by Mailfois. Mailfois is built by someone who works in email marketing and also builds apps. About Mailfois.

Check every headline on every image before it goes out.

Try Mailfois free