Text on Image Contrast Checker

Is your text readable on this photo? Place it on the image and see the real contrast of every pixel under the letters - not an average. Then fix it with the smallest overlay that works. Flat colors? Use the Contrast Checker.

Drop a photo here or click to browse - you can also paste with Ctrl+V JPGPNGWEBPAVIFGIFBMP
Try a sample photo:
Measuring...-
Worst case (5%)-
Median-
Lowest pixel-
Passing AA-
Passing AAA-
APCA at worst-
Aa #FFFFFF on #000000Measured at full resolution.

Worst-case pair: open in Contrast Checker · check as a palette · pick colors from a photo

Fixes that work

Working out the minimum fixes...

Download the image

Original resolution, with your text and fix drawn in - exactly the preview.

File size-

CSS for your website

How to check text on a photo

  1. Open your photo. Drop a photo on the page, browse for one, paste it with Ctrl+V or try a sample. Nothing is uploaded.
  2. Place your text. Pick a preset or type your own text, then drag the box into place and resize it with the corner handles.
  3. Read the result. See the worst-case contrast, the median and the share of the text area that passes WCAG AA and AAA. Turn on the heat map to see the failing spots.
  4. Apply a fix and export. Apply the minimum overlay, gradient scrim, outline or box, or switch the text color. Download the image or copy the CSS.

Making a banner for a fixed size? Crop the photo first with the Image Cropper so the measurement matches what people will see.

Why text on images fails

A photo is not one color. The same headline can sit on dark leaves at one end and bright sky at the other.

Checking a single color you picked by eye misses that. So does averaging the photo - the dark and bright parts cancel out and look "fine".

Readers do not see averages. They stumble on the few letters that vanish into a highlight. That is why this tool reports the worst part of the text area, and shows it on a heat map.

Phones make it worse. A hero image shrinks with the screen, so 48 px text can end up at 12 px - and small text needs more contrast. Set Shown at to check that case.

WCAG for text over images

WCAG 2.2 success criterion 1.4.3 asks for the same contrast over images as over flat colors. It has to hold against the background behind the letters, wherever they sit.

TextAAAAA
Normal text (under 24 px, or under 18.66 px bold)4.5:17:1
Large text (24 px and up, or 18.66 px and up bold)3:14.5:1

Ratios are never rounded up: 4.49:1 fails AA for normal text. The math is identical to our Contrast Checker, and APCA from the WCAG 3 draft is shown as a second opinion.

Logos and purely decorative text are exempt. Everything people are meant to read is not.

Overlay vs scrim vs text shadow

FixWhat it doesBest for
OverlayTints the whole photo with a see-through colorFull-width heroes, quick and robust
Gradient scrimDarkens only the edge where the text sits, fading outCaptions and titles near the top or bottom
Outline / text shadowA thin halo hugs each letterWhen the photo must stay untouched
Box behind textA label with padding and rounded cornersBusy photos, social posts, thumbnails

Start with the lowest opacity that passes - the tool finds it for you - and add 5-10% if the photo may be swapped later. Building a thumbnail? Pair this with the YouTube Thumbnail Maker.

For an even, light touch, a gradient made in the Gradient Generator can double as the scrim.

Frequently Asked Questions

Open your photo, type your text and drag the text box where it will sit. The tool measures the contrast between your text color and every pixel under the text.

You get the worst case, the median and how much of the area passes WCAG AA and AAA. For two flat colors, the Contrast Checker is quicker.

An average hides the problem. Clouds and dark trees can average to a mid grey that looks fine, while the words over the clouds are unreadable.

This tool measures each pixel and reports the worst part of the text area - that is where readers struggle.

The tool sorts the contrast of every pixel under the text and reports the value that 95% of the pixels beat. That skips stray specks of grain, but still catches real bright or dark patches.

Choose Strict under Worst case to judge by the single worst pixel instead.

The same as for any text: 4.5:1 for normal text and 3:1 for large text at level AA, and 7:1 and 4.5:1 at AAA. Large text means 24 px and up, or 18.66 px when bold.

Over a photo, the ratio has to hold against the background behind every part of the letters.

A solid overlay is simplest but dims the whole photo. A gradient scrim darkens only the part behind the text. An outline keeps the photo untouched, and a box behind the text is the most reliable on busy photos.

The tool calculates the minimum opacity for each one, and gives you the CSS.

The tool tries opacities in whole percents with a binary search. At each step it draws the overlay on the real photo and measures the pixels under the text again.

The result is the lowest opacity that passes - one percent less fails.

Yes. Download the finished image as PNG, JPG or WEBP at the original resolution, with the text and your fix drawn in. The size shown is measured from the real file.

You also get the CSS to rebuild it on your website. Need a smaller file? Run it through Compress JPG.

No. The photo is opened, measured and saved in your browser and never leaves your device.

Only your text settings are remembered in this browser for next time - see our Privacy Policy.

Guides & Tutorials

All 45 guides
Tutorial How to Take a Full Page Screenshot of Any Website Nov 13, 2026 · 6 min read Read Tutorial How to Add a Favicon to Your Website (2026 Setup) Nov 13, 2026 · 4 min read Read Tutorial How to Remove the Background from a GIF (and Keep the Animation) Nov 13, 2026 · 4 min read Read