text-contrast-on-compound-background
There must be sufficient color contrast between text elements and the background
Who might be affected
Color Blind
Low Vision
Description
Text is an essential and significant element of any web page and application. Sometimes designers choose to place texts (usually titles) above images or video. In some cases, especially when the image contains many details, the text or parts of it are not readable because the contrast between the text and the background or parts of it is insufficient.
Read more about color contrast in general on the color-contrast entry.
Quick Fixes
- If possible replace the background to one that will provide a better contrast.
- Dim the background by using a semi transparent element over it.
- Dim the background by using CSS blending modes that will lighten or darken the background according to the text color.
- Values to lighten the background: lighten, screen, color-dodge
- Values to darken the background: darken, multiply, color-burn
How Users Are Affected
Text may be hard to read or not readable at all for most users.
WCAG Success criteria
This issue might cause elements to fail one or more of the following Success criteria:
1.4.3 Contrast (Minimum) (AA)
Recommended Reading
- Understanding Contrast (Minimum)
- Evinced Knowledge base color-contrast entry