This check ensures that any text that appears over a background image, gradient, or filter maintains a strong contrast ratio of at least 7:1 against its background. Enhanced contrast makes content significantly easier for individuals with low vision or color blindness to read and represents a higher standard of accessibility.
People with visual impairments, such as low vision or color blindness, often struggle to distinguish text from complex backgrounds like images or gradients if the contrast is insufficient. High contrast ensures that the information remains legible even when environmental factors, such as glare on a screen or low-light conditions, affect visibility.
This check affects individuals with:
A compliant design uses a dark overlay or a solid background color behind white text to ensure that the contrast ratio exceeds 7:1.
HTML
<div style="background-image: url('mountain.jpg'); background-color: black;">
<p style="color: white; padding: 10px; background: rgba(0,0,0,0.8);">This text is easy to read because of the high contrast overlay.</p>
</div>Text placed directly over a busy or light-colored image with no overlay often fails to meet the 7:1 ratio, which makes the words blend into the background.
HTML
<div style="background-image: url('bright-clouds.jpg');">
<p style="color: white;">This text is difficult to see against the light background.</p>
</div>This section provides instructions on how to review and fix this issue.
Identify any text that is positioned over an image, gradient, or decorative filter. You can use the Web Governance Browser Extension to identify the specific element on the page or locate it within the HTML source code. Use a color contrast analyzer to measure the ratio between the text color and the most challenging part of the background image.
For more information, visit How to review an accessibility issue.
If the contrast is below 7:1, follow the instructions below to apply one of the fixes:
If this content did not answer your questions, try searching or contacting our support team for further assistance.
If this content did not answer your questions, try searching or contacting our support team for further assistance.