The text is clearly legible because of a high level of contrast against the image. Use a dark overlay on a light image or ensure that the background image is a consistent, solid color behind the text.
HTML
<div style="background-image: url('forest.jpg'); background-color: black;">
<p style="color: white; padding: 20px;">This text has a 21:1 contrast ratio against the black background overlay.</p>
</div>White text is placed over a busy or light-colored background image without any text shadow or overlay, which makes it blend into the image. This creates a barrier for users with visual impairments who cannot differentiate the characters from the background details.
HTML
<div style="background-image: url('clouds.jpg');">
<p style="color: white;">This text is very hard to read against a light sky.</p>
</div>This section provides information about how to review and fix this issue.
Identify any elements on the page where text is displayed over an image. You can use the Web Governance Browser Extension to identify the element on the page or in the HTML source code. Once you have identified it, use a contrast analyzer tool to measure the ratio between the text color and the most similar colors in the background image. If the ratio is below 7:1 for normal text or 4.5:1 for large text, the check fails.
For more information, visit How to review an accessibility issue.
Use one of the following methods to fix the issue:
WCAG success criteria
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.