- Success Criterion 1.4.3
- Conformance level AA
Semi-Transparent Text That Fails the Contrast Minimum
1.4.3 — Contrast (Minimum)
Scenario
Setting
A car-rental site's checkout flow
What’s wrong
Semi-transparent text/backgrounds (opacity/alpha) computing below threshold.
Example
.summary-total { color: rgba(0,0,0,0.4); background: #ffffff; }
<!-- the alpha channel drops effective contrast to roughly 2:1 --> Why it matters
A renter reviewing the final charge before paying can barely make out the total amount against the white summary panel.
How to test
Measure text with any opacity/alpha transparency against what's actually behind it (not the nominal color): compute the effective blended contrast.
How to fix
Raise the alpha value until the computed contrast against the actual background clears 4.5:1 (about 15:1 here); never guess with a low opacity.
.summary-total { color: rgba(0,0,0,0.87); background: #ffffff; } Outcome
The renter reads the final total clearly and confirms the charge before submitting payment.
Who is affected
Low-vision users, who need the final total to be one of the clearest lines on the checkout page, not the faintest.
Learn more
- Understanding Understanding document (opens in a new tab)
Related scenarios
- Text Color Set Without a Matching Background Color
- Text Placed Directly Over a Photo With No Solid Backing
- 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