Skip to content
Tutorials Center
My learning

Topics

CSS Reference ยท Colors and Backgrounds

The background-blend-mode property

Reference for CSS background-blend-mode: how background layers and the background color blend, the list of blend modes, differences from mix-blend-mode, and examples.

The background-blend-mode property controls how an element's background layers (its images and its background color) blend with each other. Instead of the top image simply covering the one below, the browser combines their colors with a blend mode such as multiply, screen or difference.

It blends layers within one element's background only. It never mixes the background with the element's content or with elements behind it. For that, use mix-blend-mode.

CSS
.duotone {
  background-color: #1d4ed8;
  background-image: url("photo.jpg");
  background-blend-mode: multiply;
}

Try it

Same layers, different modes

Syntax

CSS
background-blend-mode: <blend-mode>#;

background-blend-mode: multiply;
background-blend-mode: screen, normal; /* one mode per image layer */
  • Initial value: normal
  • Applies to: all elements
  • Inherited: no
  • Animatable: no
  • Computed value: as specified

Values

Value Description
normal No blending; the top layer covers the ones below.
multiply Multiplies colors, always darker. White has no effect.
screen The opposite of multiply, always lighter. Black has no effect.
overlay, soft-light, hard-light Mix multiply and screen depending on the lightness of the layers, for contrast effects.
darken, lighten Keep the darker or lighter channel value.
color-dodge, color-burn Brighten or darken the lower layer based on the upper one.
difference, exclusion Subtract colors, giving inverted, high-contrast looks.
hue, saturation, color, luminosity Combine one component of the top layer with the rest of the layers below.
plus-lighter Adds colors; its support is limited, so check before relying on it.

Usage notes

  • One mode per layer. The list is matched to the images in the same order as background-image. A layer's mode controls how it blends with the layers beneath it, including the background color, so the bottom image layer is blended against the color.
  • The background color takes part. That is why a solid color plus a photo and multiply gives a quick tinted or duotone effect without editing the image.
  • Not content. Text and child elements inside the box are not blended. To blend the element with what is behind it, use mix-blend-mode.
  • Short lists repeat. If there are more layers than modes, the list repeats.
  • Check contrast. Blending changes the final colors, so test any text on top at its worst spot.
  • Cheap fallback. In an unsupported browser the layers just stack normally, so choose a base color that still looks acceptable.

Browser support

Supported in current browsers. Check a compatibility table for older versions, and for rarer modes such as plus-lighter.