CSS background-blend-mode Property

The background-blend-mode property controls how an element's background images, gradients, and background color blend together.

It uses blending modes such as multiply, screen, overlay, and luminosity to combine background layers. This makes it possible to create color overlays, photographic effects, and decorative backgrounds without editing the original image files.

background-blend-mode Syntax

selector {
  background-blend-mode: multiply;
}

The property accepts a blend mode keyword or a comma-separated list of blend modes for multiple background image layers.

.normal-background {
  background-blend-mode: normal;
}
.multiply-background {
  background-blend-mode: multiply;
}
.screen-background {
  background-blend-mode: screen;
}
.overlay-background {
  background-blend-mode: overlay;
}
.color-background {
  background-blend-mode: color;
}
.multiple-blends {
  background-blend-mode: multiply, screen;
}

The property also accepts CSS-wide values such as inherit, initial, revert, revert-layer, and unset.

Property Values

The property supports the following standard blending modes.

Value Description
normal Displays background layers without applying a special blend mode. This is the initial value.
multiply Multiplies color components to produce a darker result.
screen Produces a lighter result by combining the inverse color components.
overlay Combines multiply and screen effects according to the underlying colors.
darken Selects the darker component from the source and backdrop colors.
lighten Selects the lighter component from the source and backdrop colors.
color-dodge Brightens the backdrop according to the source colors.
color-burn Darkens the backdrop according to the source colors.
hard-light Combines multiply and screen effects according to the source colors.
soft-light Applies a softer lighting effect that can lighten or darken the backdrop.
difference Subtracts the darker component from the lighter component, producing contrasting colors.
exclusion Produces an effect similar to difference, generally with lower contrast.
hue Uses the hue of the source while preserving the saturation and luminosity of the backdrop.
saturation Uses the saturation of the source while preserving the hue and luminosity of the backdrop.
color Uses the hue and saturation of the source while preserving the luminosity of the backdrop.
luminosity Uses the luminosity of the source while preserving the hue and saturation of the backdrop.

The property applies to all elements, is not inherited, and has an initial value of normal. Its computed value is the specified list of blending keywords, and its animation type is discrete.

Each blend mode controls how one background image layer combines with the background layers and color beneath it.

How background-blend-mode Works

Background blending combines the colors of overlapping background layers to produce a new visual result.

The source is the background image layer being blended. The backdrop consists of the background layers and color beneath it.

.blended-panel {
  background-image: url("photo.jpg");
  background-color: #1769aa;
  background-blend-mode: multiply;
}

The photograph blends with the blue background color using the multiply mode, generally creating a darker, blue-tinted appearance.

Background Layer Order

When multiple background images are specified, the first image is painted on top. Each following image appears beneath the previous one, with the background color at the bottom.

.layered-panel {
  background-image: linear-gradient(#1769aa, #69b7e8), url("photo.jpg");
  background-color: #e8f2fb;
  background-blend-mode: multiply, normal;
}

The first blend mode applies to the gradient, blending it with the image and color underneath. The second applies to the photograph over the background color.

Blending Is Contained

Background blending takes place within the element's background painting area. It does not blend the element's foreground text or other content with elements outside its background.

For blending an entire element with content behind it, use the separate mix-blend-mode property.

Darkening Blend Modes

Darkening blend modes produce results that are generally darker than the original source or backdrop colors.

multiply

The multiply mode multiplies the source and backdrop color components. White has no effect on the result, while black produces black.

.multiply-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: multiply;
}

This mode is useful for darkening photographs and creating colored image overlays.

darken

The darken mode selects the darker value of each corresponding color component.

.darken-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: darken;
}

It preserves darker components from either layer rather than multiplying them together.

color-burn

The color-burn mode darkens the backdrop according to the source color, often increasing contrast in darker areas.

.burn-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: color-burn;
}

This mode can create a stronger, more dramatic color effect than multiply.

Lightening Blend Modes

Lightening blend modes produce results that are generally brighter than the source or backdrop colors.

screen

The screen mode combines inverted color components to create a lighter result. Black has no effect, while white produces white.

.screen-panel {
  background: url("photo.jpg") center / cover no-repeat #69b7e8;
  background-blend-mode: screen;
}

This mode is useful for creating bright overlays and softening dark backgrounds.

lighten

The lighten mode selects the lighter value of each corresponding color component.

.lighten-panel {
  background: url("photo.jpg") center / cover no-repeat #69b7e8;
  background-blend-mode: lighten;
}

Unlike screen, it selects the lighter component rather than combining both mathematically.

color-dodge

The color-dodge mode brightens the backdrop based on the source colors, often creating vivid highlights.

.dodge-panel {
  background: url("photo.jpg") center / cover no-repeat #69b7e8;
  background-blend-mode: color-dodge;
}

This mode can produce intense brightness and contrast, particularly when the source contains light colors.

Contrast Blend Modes

Contrast blend modes combine darkening and lightening operations to emphasize differences between colors.

overlay

The overlay mode combines multiply and screen according to the backdrop color components.

.overlay-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: overlay;
}

Darker backdrop areas are generally darkened, while lighter areas are brightened.

hard-light

The hard-light mode combines multiply and screen according to the source color components.

.hard-light-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: hard-light;
}

This mode can produce strong highlights and shadows, depending on the source colors.

soft-light

The soft-light mode creates a gentler lighting effect that can brighten or darken the backdrop.

.soft-light-panel {
  background: url("photo.jpg") center / cover no-repeat #69b7e8;
  background-blend-mode: soft-light;
}

It is useful when a subtle adjustment is preferred over a stronger contrast effect.

For overlay, hard-light, and soft-light, the exact result depends on the colors and order of the background layers.

Difference and Exclusion

The difference and exclusion modes compare the source and backdrop colors to create contrasting effects.

difference

The difference mode calculates the absolute difference between corresponding color components.

.difference-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: difference;
}

Blending with black leaves the backdrop unchanged, while blending with white inverts the backdrop colors.

exclusion

The exclusion mode produces a related effect, generally with lower contrast.

.exclusion-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: exclusion;
}

It is useful for creating unusual color combinations and decorative visual effects.

Both modes can produce dramatic changes when the source and backdrop contain strongly contrasting colors.

Color Component Blend Modes

The hue, saturation, color, and luminosity modes combine different color characteristics from the source and backdrop.

hue

The hue mode uses the source hue while preserving the backdrop's saturation and luminosity.

.hue-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: hue;
}

saturation

The saturation mode uses the source saturation while preserving the backdrop's hue and luminosity.

.saturation-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: saturation;
}

color

The color mode combines the source hue and saturation with the backdrop luminosity.

.color-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: color;
}

This mode can be useful for colorizing an image while preserving much of its light and dark detail. For a solid color overlay on a photograph, place the color in an upper gradient layer.

.colorized-photo {
  background: linear-gradient(#1769aa, #1769aa), url("photo.jpg") center / cover no-repeat;
  background-blend-mode: color, normal;
}

luminosity

The luminosity mode uses the source luminosity while preserving the backdrop hue and saturation.

.luminosity-panel {
  background: url("photo.jpg") center / cover no-repeat #1769aa;
  background-blend-mode: luminosity;
}

These modes are useful for color treatments where specific color characteristics should be preserved or replaced.

Multiple Background Layers

The background-blend-mode property accepts a comma-separated list of values when an element has multiple background images.

.layered-background {
  background-image: linear-gradient(#1769aa, #69b7e8), url("photo.jpg");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-color: #e8f2fb;
  background-blend-mode: multiply, normal;
}

The first blend mode applies to the gradient. The second applies to the photograph.

Each image layer is blended with the layers beneath it, including the background color where applicable.

Matching Blend Modes to Layers

.three-layers {
  background-image: linear-gradient(#1769aa, transparent), url("pattern.png"), url("photo.jpg");
  background-blend-mode: overlay, multiply, normal;
}

The first value applies to the gradient, the second to the pattern, and the third to the photograph.

If fewer blend modes are specified than background image layers, the browser repeats the blend mode list as necessary. Extra values are not used when there are fewer image layers.

Using a Single Blend Mode

.single-mode {
  background-image: url("pattern.png"), url("photo.jpg");
  background-blend-mode: multiply;
}

The single multiply value is repeated to match both background image layers.

Background blending is isolated to the element's own background layers. The result is then painted as part of the element's background.

background-blend-mode vs. mix-blend-mode

The background-blend-mode and mix-blend-mode properties both use blending modes, but they operate on different content.

Property What It Blends
background-blend-mode Blends an element's own background image layers with the background layers and color beneath them.
mix-blend-mode Blends an element's rendered content with the backdrop behind the element, subject to stacking and isolation rules.

Using background-blend-mode

.background-panel {
  background-image: url("photo.jpg");
  background-color: #1769aa;
  background-blend-mode: multiply;
}

The photograph blends with the element's blue background color.

Using mix-blend-mode

.overlay-element {
  background-color: #1769aa;
  mix-blend-mode: multiply;
}

The element's rendered appearance blends with the backdrop behind it rather than only blending its own background layers.

Use background-blend-mode for combining backgrounds within one element. Use mix-blend-mode when the element itself should blend with surrounding rendered content.

background-blend-mode Example

The following example compares four blending modes using the same striped background and translucent color overlay.

Each box contains two CSS gradient layers. The upper layer is a semi-transparent blue gradient, while the lower layer contains alternating light and dark stripes.

<div class="blend-demo">
  <div class="blend-box normal">normal</div>
  <div class="blend-box multiply">multiply</div>
  <div class="blend-box screen">screen</div>
  <div class="blend-box overlay">overlay</div>
</div>
.blend-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
.blend-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid #1769aa;
  border-radius: 6px;
  color: #102b44;
  font-weight: bold;
  text-align: center;
  background-image: linear-gradient(rgb(23 105 170 / 65%), rgb(23 105 170 / 65%)), repeating-linear-gradient(45deg, #f5f8fc 0, #f5f8fc 20px, #517da6 20px, #517da6 40px);
  background-repeat: no-repeat, repeat;
}
.blend-box.normal {
  background-blend-mode: normal;
}
.blend-box.multiply {
  background-blend-mode: multiply;
}
.blend-box.screen {
  background-blend-mode: screen;
}
.blend-box.overlay {
  background-blend-mode: overlay;
}

All four boxes use identical background layers. Only the blending mode changes.

Browser Result
normal
multiply
screen
overlay

The normal box displays the translucent gradient over the stripes without a special blending calculation.

The multiply box produces darker colors, while screen creates a lighter result. The overlay box combines darkening and lightening based on the underlying stripe colors.

Because the demonstration uses CSS gradients, it does not require external image files. The different results come entirely from changing background-blend-mode.

Important Considerations

Keep the following points in mind when using background-blend-mode:

  • Default value: The initial value is normal, which does not apply a special blending calculation.
  • Background layers: The property blends an element's background images, gradients, and background color.
  • Layer order: The first background image is the topmost layer, with subsequent layers painted beneath it.
  • Multiple values: Commas separate blend modes when different background layers require different effects.
  • Repeated values: A shorter blend mode list is repeated to match the number of background image layers.
  • Background color: The background color is painted beneath all background image layers and can participate in blending.
  • Shorthand resets: The background shorthand resets background-blend-mode to normal.
  • Element content: The property does not directly blend an element's foreground text or descendants.
  • Color results: Different blend modes can produce significantly different results depending on the source and backdrop colors.
  • Text readability: Blended backgrounds can change contrast, so verify that foreground text remains readable.
  • Performance: Complex layered backgrounds may increase rendering work, particularly when frequently updated or animated.

Use background-blend-mode when background layers need to interact visually rather than simply covering one another. For blending an entire element with its surroundings, use mix-blend-mode instead.

Browser Support

The background-blend-mode property has Baseline Widely available status and is supported in modern versions of Chrome, Edge, Firefox, Safari, and other major browsers.

Older browsers that do not support background blending generally display the background layers without the requested blend effect.

Provide a readable background color or image arrangement that works without blending.

.banner {
  background: #1769aa url("photo.jpg") center / cover no-repeat;
}
@supports (background-blend-mode: multiply) {
  .banner {
    background-blend-mode: multiply;
  }
}

The background remains visible without blend mode support, while supporting browsers apply the multiply effect.

Visit Can I Use? to check current browser compatibility.

Specifications

The background-blend-mode property is defined in the Compositing and Blending Module Level 1 specification.

Compositing and Blending Module Level 1