5 Ways to Improve Contrast When Placing Text Over Images

With the recent trend of using high-quality images as backgrounds on websites, it’s important to make sure there is high contrast between the text and the background. In order for the user to be able to receive the message being conveyed by the website, legibility is critical.

Below are five ways to improve contrast when placing text over images.


1. Color Overlay

As we can see in the Before image, the text is fairly difficult to read because of how distracting the background is. There are countless details, especially around the menu area. The beautiful texture of the “Buffalo Wings” font is completely lost because of how cluttered the background is. There is certainly room for contrast improvement in this image.

5 Ways to Improve Contrast When Placing Text Over Images 1

The first step is to create a new layer and and rename it to “color-overlay”. Choose the color selector tool (Keystroke I). Pulling color from the man’s shirt, fill the new layer with color. (Keystroke Combination Shift + F5).

5 Ways to Improve Contrast When Placing Text Over Images 2

Finally, set the opacity of the layer to 50% and drag the layer below the text.

5 Ways to Improve Contrast When Placing Text Over Images 3

As we can see, the contrast is greatly improved. The texture of the “Buffalo Wings” font is pushed to much greater prominence and is much more visible.

5 Ways to Improve Contrast When Placing Text Over Images 4


2. Drop Shadow

In this scenario, we have a client that requested a thin, weak font over a highly-detailed area of photo. This is an undesired situation because of how difficult it can be to obtain sufficient contrast between the image and the text.

The first step would be to choose an appropriate color for the text.

5 Ways to Improve Contrast When Placing Text Over Images 5

Clearly, in this case, we want a lighter colored font, preferably white.

5 Ways to Improve Contrast When Placing Text Over Images 6

The next step is to add a new layer style and choose a drop shadow. Set the opacity to 52%. Adjust the Spread to 16% and the Size to 10px. The angle should be somewhere close to -144 degrees.

5 Ways to Improve Contrast When Placing Text Over Images 7

Simply by adding a drop shadow, the contrast is greatly enhanced.

5 Ways to Improve Contrast When Placing Text Over Images 8


3. Lines

This is one of the easiest ways to improve contrast. Simply adding two whites lines above and below the message gives a better separation between background and text.

5 Ways to Improve Contrast When Placing Text Over Images 9

Adding the two lines…

5 Ways to Improve Contrast When Placing Text Over Images 10

…gives a much better distinction between the two design elements.


4. Shape Block

Another way to improve contrast is to add a faded-out shape behind the text. It’s a little hard to describe, so I’ll just show you.

As we can see here, the image initially has little to no contrast. The text is very hard to make out and the divider is almost lost in the building’s details.

5 Ways to Improve Contrast When Placing Text Over Images 11

In order to increase legibility, use the Custom Shapes Tool (Keystroke U) and create a shape. It can really be whatever you choose, there is no right or wrong shape.

Fill the shape with black and set the Stroke at White and 3pt.

5 Ways to Improve Contrast When Placing Text Over Images 12

Drag the shape below the text and divider layers and set the layer Opacity to 57%.

5 Ways to Improve Contrast When Placing Text Over Images 13

The end result is much more professional and a lot easier to read.

5 Ways to Improve Contrast When Placing Text Over Images 14


5. Blurring the Background

The fifth and last way to improve contrast is by blurring out the background slightly.

Initially, the text is hard to distinguish from the background.

5 Ways to Improve Contrast When Placing Text Over Images 15

The first step is to convert the background image to a smart object. Simply right click and select ‘Convert to Smart Object’.

5 Ways to Improve Contrast When Placing Text Over Images 16

Go to Filters/Blur/Gaussian Blur.

5 Ways to Improve Contrast When Placing Text Over Images 17

Set the blur radius to 3.8 pixels.

5 Ways to Improve Contrast When Placing Text Over Images 18

The contrast is now greatly improved and the text can clearly be read.

5 Ways to Improve Contrast When Placing Text Over Images 19

I hope you enjoyed this tutorial! Please feel free to ask any questions you may have – I’ll be monitoring the comments.