Worst case, not a sample
A reader cannot choose which part of the background a word lands on. The lowest-contrast spot behind the text is where it becomes hard to read, so that is the number this leads with.
Draw a box around text on a photo, screenshot or gradient. Get the contrast at its worst spot, not at one clicked pixel. A second mode checks where an AI label will sit on a picture.
Published . Last reviewed .
Your image never leaves your device. It is opened and measured inside this browser tab; nothing is uploaded, stored or sent. How to check that for yourself.
Measures text that is already part of the picture. Draw a box around it and the tool finds the contrast at the worst spot behind the letters.
Measures a label you plan to add, such as the EU's AI icon or an "AI-generated" tag, before it is on the picture. Choose a corner and the label's colors, and the tool reports the contrast at the weakest spot of the area the label will cover. For a label that is already part of the picture, choose "Text on an image" and draw a box around it.
Drop an image here
or press Enter to choose a file, or paste an image from your clipboard (Ctrl+V or ⌘V)
PNG, JPEG, WebP, GIF or AVIF, up to 25 megapixels
Drag a box around the text on the image, or type the box in as numbers below. Include some of the background around the letters: that is what gets measured.
Choose a corner. The EU Code of Practice on AI-generated content gives the top right corner of an image as its example placement, so it comes first. You can also drag a box on the image to try any other spot. Draw it around the area the label will cover and nothing else: that is what gets measured.
These start at sizes we picked so that there is something to measure. They are not a recommendation: enter your label's real size. A box you drag on the image replaces the corner, and its size appears here.
Fill in all four and the measurement updates by itself. They follow the box you draw, and drawing follows them.
Click the middle of a thick part of a letter on the image. Keyboard users can type the color or use the eyedropper instead.
Tick the parts your label has and give each one its color. The Commission's icons come in solid and in see-through versions: a see-through label shows less against the picture, so set its opacity too. Both start as white so that there is something to measure; change them to your label's colors.
The tool picked this color itself. Compare it with the letters on the image: the result becomes a verdict only once the color is yours.
| Part of the box | Left | Center | Right |
|---|
| Corner | Label text | Icon |
|---|
A label drawn into the pixels is an image of text. A screen reader cannot read pixels, and WCAG 1.1.1 Non-text Content asks that non-text content have a text alternative. Put the same words where assistive technology can reach them: in the icon's alt text, or in a visible caption next to the image. The Commission's icons page says that, if possible, the icon should be readable by assistive technologies using alt text or ARIA labels. Our guide to accessible AI labels shows both ways.
This measured the contrast of text on one image. Contrast is not part of the Site Image Check, but an image that passes here still needs alt text that is true of the picture. The Site Image Check judges the alt text of the images on up to 50 pages for $49, once, with no subscription: a fix sheet with drafted alt text for each flagged image, and one re-check within 30 days.
Check my site once from $49 See a sample fix sheet (CSV file)
Your box is read from the image. If it holds more than 1,000,000 pixels, the tool measures a regular grid of them instead, so large images stay quick: every Nth pixel in each direction, using the smallest N that keeps the grid within 1,000,000 points. For a whole 12-megapixel phone photo (4032 × 3024) that is every 4th pixel, and the result says which spacing it used. Nothing outside your box is read.
Unless you set it, the tool splits the box's pixels into the two color groups that describe them best and takes the smaller group as the text, because letters usually cover less of a box than what is behind them. It also scores how clear that split is, and checks that neither group hides a third color, such as a dark building beside a headline on a pale sky, which would make "the smaller group" meaningless. If it cannot tell the text from the background it says so and asks for the color. When it can, the color is still only a suggestion: the result is worded "if the text is …", with no pass or fail, until you confirm the color with one button or set it yourself.
Pixels that match the text color are the letters. The anti-aliased pixels along their edges are blends of text and background, so they are always lower in contrast than the background itself, and counting them would make every piece of text fail somewhere. They are set aside: pixels touching a letter, and blended pixels one step further out. A smooth stretch of background is never set aside just for looking like a blend, so the dark end of a gradient still counts. Thin lines, grids and fine texture are different: up close they look like the soft edge of a thin letter. The result says so and gives both figures instead of a plain pass when failing detail like that runs unbroken across the box and some of it has no letter near it, or when counting it as background would add more than 5 percentage points to the failing share. It does the same when an area of the text color is too wide to be a letter.
Every remaining background pixel gets a WCAG contrast ratio against the text color. You see the worst ratio, the 5th percentile, the median and the share of the background below your threshold. The verdict only says "passes everywhere" if every measured pixel passes, nothing set aside would change that, and the text color is one you set or confirmed: a median that passes while a third of the box fails is not a pass.
| Text size | Level AA | Level AAA |
|---|---|---|
| Normal text | 4.5:1 | 7:1 |
| Large text | 3:1 | 4.5:1 |
These come from WCAG success criteria 1.4.3 Contrast (Minimum) and 1.4.6 Contrast (Enhanced). Large text is at least 18 point (24px), or at least 14 point (about 18.7px) and bold.
AI label mode measures a label's lettering against the same text ratios, and its icon against the 3:1 that WCAG success criterion 1.4.11 Non-text Contrast sets for graphics needed to understand content.
In Section 2 of the EU's Code of Practice on transparency of AI-generated content, which the Commission found adequate on July 8, 2026, signatories that publish deep fakes commit to put the label or icon "in an appropriate place where no intervening overlay elements exist (e.g., in the top right corner of an image or video deep fake)", to keep it visible "against any background", and to provide "high contrast icons or equivalent labels and screen-reader compatibility" (Measures 1.1 and 1.2). The Code binds only the organizations that signed it, and the Commission's guidelines on Article 50 are not binding either.
AI label mode measures the part of that which pixels can tell you: how well your label's colors stand out at the weakest spot of the area it will cover. We checked these sources on October 21, 2026. This is general information, not legal advice.
The Code says the label "may appear in different sizes depending on the context", as long as the disclosure is clear and distinguishable. In our reading, neither the Code nor the Commission's icons page names a minimum size or a contrast ratio. So the label's height is shown as a share of the picture's shortest side, as a measurement, and nothing is checked against it.
WCAG 1.4.3 sets no contrast requirement for text that is part of a picture with significant other visual content, so a label drawn into a photo can be exempt from WCAG and still be hard to see. The Code's test is visibility, which is why this mode reports the weakest spot as numbers and says "reaches" or "below" a reference ratio, not pass or fail. For wording, placement and the screen reader side, read Accessible AI labels, and use the accessible AI label generator to write label text and markup with the text equivalent included. For whether a picture needs a label at all, start with the AI disclosure laws hub.
A reader cannot choose which part of the background a word lands on. The lowest-contrast spot behind the text is where it becomes hard to read, so that is the number this leads with.
A heat map on the image and a plain-text table show which part of the box fails, so you know what to move or darken. Neither relies on color alone.
There is no upload, no account and no server doing the maths, so a screenshot of an unreleased design never goes anywhere.
No. The image is decoded and measured in this browser tab, and there is no server-side processing: the maths is in two script files you can read, image-contrast-ui.js and image-contrast.js. To check for yourself, open your browser's developer tools, switch to the Network tab and load an image. Apart from this page's own files and its web font when the page first opens, nothing is requested.
An average or a median can pass while a third of the box fails. The tool reports the worst ratio, the 5th percentile and the median, and the share of the background that fails your threshold, and it only says a box passes if every measured pixel does.
Because the detected color is the tool's guess at which color is the lettering, and a wrong guess gives a wrong answer that looks just as sure as a right one. In our own testing, white text on a sky fading from blue to pale, beside a dark building, was taken to be the color of the building, and measured with that color the box passed, although most of the background behind the real text failed. So until you press "Yes, the text is …", type the color, pick it from the image or use the eyedropper, the result says "if the text is …" and gives no pass or fail.
Automatic detection assumes the box holds two main colors and that the smaller one is the text. A photo or a gradient is a smear of colors rather than two groups, a box that is half letters and half background has no clear minority, and a box that also catches a third color, such as a building, a button or the page around a banner, has no single smaller group to pick. In those cases it asks you instead of offering a suggestion: click a letter on the image, type the color, or use the eyedropper if your browser has one.
Common fixes are a solid or semi-transparent panel behind the text, darkening or lightening the part of the image behind it, moving the text to a calmer part of the image, or changing the text color. Where one color would pass against everything in your box, including anything it set aside and was unsure about, the result lists it. Text shadows and outlines are not modeled, so if you rely on one, judge the result by eye as well.
Screenshot or export the page or frame as an image and load it here. For the structure of a PDF, such as its tags and language, use our PDF accessibility checker.
For two flat colors, use our color contrast checker. For text on a live page, our free accessibility bookmarklet measures the rendered contrast in your own browser, on the page you are looking at.
It compares the colors you enter for a label's text and icon with every sampled pixel of the corner you choose, and reports the weakest spot for each, the share of the area that falls below the reference ratio, all four corners side by side, and the label's height as a share of the picture's shortest side. It does not see your actual label, and it cannot tell whether a picture is AI-generated.
In our reading, no. The EU Code of Practice says a label may appear in different sizes depending on the context as long as the disclosure is clear and distinguishable, and it asks for high contrast icons or equivalent labels without naming a ratio. The Commission's icons page names neither a size nor a ratio. The ratios used here are WCAG's, as a yardstick, and the height share is a measurement with no threshold. The Code binds only the organizations that signed it. We checked these sources on October 21, 2026, and this is not legal advice.
A screen reader cannot read pixels, so the words of a label drawn into the picture need a text equivalent somewhere else. WCAG 1.1.1 asks for a text alternative for non-text content, and the Commission's icons page says that, if possible, the icon should be readable by assistive technologies using alt text or ARIA labels. Whether the picture's own alt text should also say it is AI-generated is a separate question that nobody has settled: see should alt text say an image is AI-generated.
Color is only half of what an image does on a page. GotAlt's alt text checker downloads the actual image file and compares it to the words with a vision model.
Check if my alt text is actually rightThe free scan runs 16 rule-based WCAG checks on up to 3 pages of your site: missing alt text, form labels, headings, page language, link text and more. No signup.
Scan my site for freeA link from your site, newsletter or resources page helps other people find this free tool. Copy it here: