Text on image contrast checker Keep text clear over a changing background.

Select a background region, choose text colors and test a uniform overlay.

Check text over an image region

Place text on a background image and inspect every pixel in its selected rectangle.

Inspect the selected background

Drag on the image to select a rectangle, or enter coordinates in the advanced controls.

Load an image or use the example to begin.

This is a conservative background-region check. It does not recognize existing image text or certify WCAG conformance.

Use the result

Load an image or use the example to begin.

CSS reproduces the uncropped aspect ratio and relative text placement; replace the image path and add .image-caption text. It uses container units. Recheck after cropping or layout changes. JSON records the decoded pixels’ region statistics and settings, without embedding the image.

Images are processed in your browser, without uploading them. The site still loads assets, advertising and analytics.

Keep text clear over a changing background.

Select a background region, choose text colors and test a uniform overlay.

Inspect the background behind the text

A whole-image average can hide one difficult patch. Place the rectangle where the new text will go and inspect all background pixels, including the gaps between letters. The minimum describes this selected region.

Glass selection frame and lens over a varied architectural background

Try the overlay in context

A uniform black or white layer can help separate text from an image. Compare the result, preserve a report of the assumptions and recheck after changing the image crop or layout.

Light bars over matching bright and darkened conceptual panels

How to check image text contrast

Select a background region, choose text colors and test a uniform overlay.

01

Load a background and place text

Use a background without baked-in text. Enter the new text, its color and the target for the final typography.

02

Choose the region and overlay

Drag a rectangle or enter coordinates. Inspect the minimum, try black or white and apply a sufficient opacity.

03

Export and recheck the layout

Fix text overflow, then copy CSS or save JSON. Add the actual image path and recheck any crop or responsive layout changes.

Text on image contrast checker FAQ

Select a background region, choose text colors and test a uniform overlay.

Why use the lowest contrast instead of an average?

A bright patch behind light text can disappear in an image average. This tool checks every decoded pixel in the selected rectangle and reports the lowest ratio and fraction meeting your target.

Does it recognize text already inside a picture?

No OCR or text removal is performed. Use a background image without baked-in lettering and supply the new text color. The entire rectangle, including gaps between glyphs, is checked conservatively; glyph shapes are not analyzed.

When may I choose 3:1, 4.5:1 or 7:1?

Ordinary AA text generally uses 4.5:1; qualifying large text may use 3:1, and normal-text AAA uses 7:1. Judge the final rendered CSS size and weight. The original-image pixel font size and a scaled preview do not establish large-text eligibility.

Is the overlay suggestion the exact minimum?

No. It finds a sufficient black or white opacity by conservatively putting all selected background pixels on one luminance side of the text, then rechecks the rounded result. It may be stronger than necessary and may be impossible for the chosen text/overlay pair.

How are transparency and color handled?

Decoded image alpha is flattened over your opaque backdrop in encoded sRGB and rounded to 8 bits. The uniform overlay is applied and rounded again before ratios are computed. Color inputs are mapped to 8-bit sRGB.

Will exported CSS guarantee the same result everywhere?

No. It keeps the original aspect ratio, relative region and container-scaled font. Add your actual text and image path. Cropping, responsive changes, fonts, browser color management or animation can change the result; recheck the real layout.

Which files are supported and are they uploaded?

PNG, JPEG and WebP up to 20 MiB, 12 million pixels and 6000 px per side are decoded locally. Only a static image is processed. The URL saves settings but not the image; reloads and language changes require selecting a local image again. The site still loads assets, advertising and analytics.

Does a passing region certify accessibility?

No. This is a conservative background-pixel check, not a full WCAG audit. Ratios are evaluated before display rounding. Text overflow must be fixed before export, and actual typography, content, rendering and the complete product still need review.

Technical references: MDN · Canvas · W3C · G18 · WCAG 2.2

Keep text clear over a changing background.

Select a background region, choose text colors and test a uniform overlay.

This is a conservative background-region check. It does not recognize existing image text or certify WCAG conformance.