Text Over Images

The design of the some content types requires text to be placed over an image.

When choosing an image you need to be aware of this to ensure the contrast ratio around the text meets accessibility requirements. The content types used larger text which requires a contrast ratio of over 3:1.

A manual check can be run on content using the Accessibility Insights for Windows tool Color Contrast Analyzer function. 

Take the following Course as an example, where in the Masthead the Course Name is placed over the Background Image:

Screenshot showing course masthead example

Set Color 1 to the color of the text e.g., white #FFFFFF. Using the eye drop for Color 2 move around the edge of the text, the color and ratio updates as the cursor is moved to allow a manual check to take place. You can see from the following screenshot that the colour contrast ratio around the text is comfortably above the ratio required:

Screenshot showing testing the color contrast around the text of a Course Masthead

Image Overlay

When a lighter image is used this can cause the contrast ratio to fall below the required level. In cases like this there is an Image Overlay element which provides the option to add either a light or dark vignette over the image to improve the contrast ratio. Depending on the image choose a suitable option.

Content types which are this option are:

The Course content type has an Image Overlay element, but based on the design of the Course Masthead being slightly different the options are to add a Full or Partial overlay.

Featured Panel Example

Take using the following image for example with the Featured Panel content type:

Person using VR

Here you can see how the contrast ratio is below the required 3:1 ratio for larger text:

Screenshot showing testing the color contrast around the text of a Featured Panel

With this image using the light Image Overlay option still leaves the contrast ratio below 3:1:

Screenshot showing testing the color contrast around the text of a Featured Panel with light overlay applied

Here as the image is very light the dark Image Overlay option is needed to get the color contrast above the required ratio:

Screenshot showing testing the color contrast around the text of a Featured Panel with dark overlay applied

See the following Featured Panel content items used the same image with the different Image Overlay options applied and what effect this has:

No Image Overlay

Person using VR

We are passionate and committed to making a significant impact to global challenges

Learn more

Our students get skills for life to stay ahead in a changing world. Our campus in London is open to students and staff from around the world. At Middlesex, we’re a global family with a shared vision of a world that's fairer and more inclusive.

Light Image Overlay

Person using VR

We are passionate and committed to making a significant impact to global challenges

Learn more

Our students get skills for life to stay ahead in a changing world. Our campus in London is open to students and staff from around the world. At Middlesex, we’re a global family with a shared vision of a world that's fairer and more inclusive.

Dark Image Overlay

Person using VR

We are passionate and committed to making a significant impact to global challenges

Learn more

Our students get skills for life to stay ahead in a changing world. Our campus in London is open to students and staff from around the world. At Middlesex, we’re a global family with a shared vision of a world that's fairer and more inclusive.