- Success Criterion 1.4.3
- Conformance level AA
- W3C reference F83
Text Placed Directly Over a Photo With No Solid Backing
1.4.3 — Contrast (Minimum)
Scenario
Setting
A real-estate marketplace's listing page
What’s wrong
Text sits directly on a background photo without a solid overlay — in parts of the image the text becomes unreadable.
Example
<div class="listing-hero" style="background-image:url(house.jpg)">
<h1 style="color:#ffffff">3-Bed Colonial, $450,000</h1>
</div>
<!-- no overlay; the price sits over a light sky patch in the photo --> Why it matters
A buyer scrolling on their phone can't read the asking price where the house photo's bright siding sits directly behind the white heading.
How to test
Use a contrast checker on text placed directly over a photo/background image with no solid overlay: check the lowest-contrast point across the image, not just one spot.
How to fix
Add a solid or semi-opaque scrim behind text on photos so contrast holds at roughly 7:1 regardless of the image underneath.
<div class="listing-hero" style="background-image:url(house.jpg)">
<div style="background:rgba(0,0,0,0.55)">
<h1 style="color:#ffffff">3-Bed Colonial, $450,000</h1>
</div>
</div> Outcome
The buyer reads the asking price clearly no matter which part of the listing photo sits behind it.
Who is affected
Low-vision users and anyone viewing the page outdoors, where reduced screen contrast makes marginal text harder to read.
Learn more
- Understanding Understanding document (opens in a new tab)
- Technique Related technique (opens in a new tab)
Related scenarios
- Text Color Set Without a Matching Background Color
- Body Text Contrast That Falls Below the 4.5:1 Minimum
- Large Heading Text That Still Falls Below 3:1 Contrast
- Placeholder Text With Contrast Too Low to Read Easily
- Text on a Gradient Background Dropping Below Contrast Ratio
- Semi-Transparent Text That Fails the Contrast Minimum