Contents

Text can be easy to read over one part of a photograph and almost disappear over another. A gradient can create the same problem: the background changes across the words, so one contrast check cannot describe the whole text area.
To assess the design, identify the displayed text color, sample several background colors behind the lettering, and compare each pair in a contrast checker. Start with the weakest result when making changes, then repeat the checks. Sampling helps reveal trouble spots, but it does not prove that every point behind the text meets your target.
Identify the text and background colors
Start with the version of the design you intend people to see. Find the color used for the heading, caption, or other text you are checking, and note its value in a format your chosen checker accepts. If there are several text colors, treat each one separately; a result for a light heading does not establish the result for a darker caption.
Next, look at the entire area occupied by each piece of text. A word may cross a bright patch of sky and a darker part of a photograph, while a line over a gradient may extend from one end of the color transition toward the other. Both ends, and the areas between them, deserve attention.
Include any visible overlay or transparency in your assessment. If a photograph has been darkened beneath the words, the relevant background is the darkened appearance behind the lettering. The same principle applies to a tinted layer or a translucent backing: check the combined appearance that readers will see, rather than using the original image color alone.
If you cannot directly retrieve that combined color, consider displaying a version of the background with the overlay in place and the text temporarily hidden. An eyedropper can select a color at a particular screen location. Keep track of the location you select so you can relate the value to the corresponding part of the text.
If the text itself is transparent or changes appearance against the background, first determine how to obtain its displayed color at each relevant location. A single nominal text color may not describe what is visible throughout the design.
Sample across the text area
Take several samples from the background immediately behind the lettering. Begin with areas that look closest in lightness to the text: for light text, inspect the lighter background patches; for dark text, inspect the darker ones. Also sample other visibly different areas along the words, including both ends of a line and any point where the image or gradient changes noticeably.
Place each sample where a letter would appear, or as close to that position as you can while selecting the background rather than the letter. Temporarily hiding the text can make this easier, provided the image, overlay, and other background layers remain in the same positions. Avoid relying on a sample from a nearby clear area if the background under the letters looks different.
Make a small record as you work. For example, label the samples “left of heading,” “middle of heading,” and “right of heading,” then add descriptions such as “bright patch behind second word.” Record the background color value beside each label. For a longer paragraph, include positions behind different lines as well as across them.
A single sample represents one spot. Even several carefully chosen samples can miss a narrow highlight, shadow, or transition beneath a letter. Use the visible design to guide additional checks, particularly where the background changes quickly or where a small section of a word seems to blend in.
If the placement of the text or background changes between versions, revisit the sample locations. Values collected for the earlier arrangement may no longer represent the areas behind the final lettering.
Compare each sample with the text color
For each location, enter the text color as the foreground and the sampled color as the background in a contrast checker. Record the ratio the checker reports alongside the location. Repeat for every sample, keeping the same text color for a given piece of text unless its displayed color changes across the design.
Your notes might look like this:
| Location | Background sample | Result |
|---|---|---|
| Left of heading | Recorded color value | Reported ratio |
| Bright patch behind heading | Recorded color value | Reported ratio |
| Right of heading | Recorded color value | Reported ratio |
The table is a way to organize your own checks; fill it with the values and results from your design. Compare the ratios and identify the lowest one. That is the weakest of the locations you sampled and a useful place to begin improving the design. It is not necessarily the weakest point everywhere behind the text.
Compare the result with the threshold appropriate to your text size and accessibility target. Check the requirements that apply to your project rather than assuming that a single threshold fits every piece of text. If a checker offers several result categories, make sure you understand which one applies before treating its indication as a pass.
Repeat the process for other distinct text, such as a small caption on the same image. Its size, color, and position may call for a separate decision. If a result is close to your chosen threshold, consider increasing the contrast rather than relying on a narrow margin, then check the revised colors again.
Improve uneven contrast and retest
When the lowest sampled result falls short of your target, change the design and test the affected area again. The right adjustment depends on where the difficult background appears and how much of the image you want to keep visible.
Choose an adjustment
Changing the text color can help when a different color works more consistently across the area. Test it against all your recorded background samples, though: a color that improves one end of a gradient may make the other end harder to read.
An overlay can make the area behind the words more consistent while leaving the image visible. Adjust its appearance, then sample the resulting background with the overlay in place. A solid backing behind the text is another option when the photograph varies too much across the lettering. Check the text against that backing, and make sure the backing covers the area occupied by the text in the version you intend to use.
Repositioning the text may also help. Look for an area where the background appears more consistent, move the text, and collect a new set of samples behind its new position. If the words can wrap differently in another format, consider where the backing or text placement will need attention there too.
Repeat the comparison
After any change, check the formerly weak location first. Then sample across the full text area again, including places that previously looked safe. An adjustment can improve one part while creating a new weak point elsewhere. Record the new ratios and compare the lowest sampled result with the applicable target.
If the result still varies too much, combine adjustments: for example, use a more suitable text color with a backing, or move the text and adjust the overlay. Keep revising until the sampled results support your target and the text is comfortable to read in context. Remember that sampled results alone do not establish that every point passes.
Check the result in context
Look at the complete design at the size readers are intended to use. Read the actual heading or caption, rather than judging only the color values. Pay attention to individual letters over bright patches, dark details, or transitions, and check whether the words remain clear throughout each line.
Review each relevant display or document format. If the text, image, crop, or overlay appears differently in a particular version, repeat the sampling and comparison for that version. A result recorded for one arrangement may not describe another arrangement with different areas behind the words.
If the color comparisons meet your chosen target at the sampled locations but the text still seems difficult to read, consider a stronger typeface or extra contrast. You can also revisit the backing, placement, or amount of text sharing a busy area. After changing the appearance, check the affected color pairs again and read the result at its intended size.
Before finishing, ask yourself:
- Which sampled area produced the lowest ratio, and did I address it?
- Did I sample across the text area, including the parts that looked closest in lightness to the text?
- Were the overlay and any transparency reflected in the colors I checked?
- Did I use the threshold appropriate to the text and the accessibility target?
- Have I reviewed each relevant final format and checked any changed placement?
Keep your location notes with the design if you expect to revise it. They make it easier to see what was checked and where fresh samples will be useful after a change.