1. Home
  2. Misc
  3. Text and images with insufficient contrast

Text and images with insufficient contrast

Text with insufficient contrast.

Ally shows reports for files that have text with insufficient contrast. The great thing is that Ally will highlight the text that is required to be changed.

Ally will tell you the number of issues relating to the text.
Use the up or down arrow to find the error information.

Screenshot of Ally report. Words ‘Text fragments with insufficient contrast.

When creating documents consider your background image, this could be the reason for text having insufficient contrast.

Screenshot of Ally report. Highlighting Words student handbook. Dial showing 46%.

Watch out for Microsoft table styles, you may need to change the background to something darker..

Screenshot of Ally report. Red boxes Highlighting words on blue background.

Text with a background colour

  • Trying to emphasise text so users see what you are wanting to teach or converse, can sometimes compromise accessibility.
  • The screenshot below shows white text on a green background which you would think, looks nice, breaks up the text, stands out.
  • The background (#9BBB59) colour on the first text box combined with the white text (#ffffff) sits at a ratio of 2.17:1. which does not meet accessibility guidelines.
  • The second image has a darker background of #4A5B25, which brings the text contrast up improving accessibility.

Tip go darker with backgrounds and check your colour combinations. WebAim colour checker

Light Green box with white writing illustrating colour contrasts.
A darker green box with white writing illustrating colour contrasts.

Text with a white background colour

For reference, if you are using a white background, the colours below not crossed out, within Microsoft Word pass the Contrast Ratio WCAG AAA for accessibility.

Mircosoft Colour selection. Dropdown menu.

Images with contrast issues

Ally will often flag images with low contrast such as images containing text or screenshots.

It is often difficult to change the contrast issues with images i.e. screen shots, maps etc. but it is worth being aware of some of the issues so you can bare this in mind when creating accessible materials and choosing images.

Contrast issues in images fall in three brackets.

  1. Colour contrast of the image compared to the background.
  • These need to have a contrast ratio of at least 3:1
  1. Colour contrast of words within the image to the background.
  • These need to have a contrast ratio of at least 4.5:1
  1. Logos, brand names and images that are decorative
  • These have no contrast requirements.

The following icons have been adapted for demonstration purposes.

Colour contrast of words with an image in the background

Adding text to an image requires the contrast ratio to be at least 4.5:1.
Adding wording to this outlook icon, the contrast ratio is now 1.31:1, compared to the second which is 9.55.
Use WebAim accessibility checker to check colours, for image and text.

Demo Outlook icon. Very pale blue. Words Outlook.
Demo Outlook icon. Dark blue. Words Outlook.

Colour contrast of the image to the background

The image content should be at least 3:1 in contrast to the background.
Adding a blue background to this outlook icon, the contrast ratio is now 1.22:1, compared to the original 4.61:1.
Use WebAim accessibility checker to check colours, for image and text.

Updated on March 23, 2022
Was this article helpful?

Related Articles

Still need support?
Can't find the answer you're looking for? Don't worry we're here to help!
Contact Digital Education