CSS mix-blend-mode Property

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The mix-blend-mode property sets how an element’s content blends with its backdrop — whatever is painted behind it in the same stacking context.

It is not inherited. The initial value is normal. It creates a stacking context. To blend only an element’s own background layers, use background-blend-mode instead.

Standard-track.

Not deprecated and Baseline Widely available. Common modes like multiply and difference are safe. plus-darker is Safari-only. Prefer plus-lighter only when you need that cross-fade compositing behavior.

CSS Syntax

syntax.css
mix-blend-mode: normal | multiply | screen | overlay | difference | … | initial | inherit;

Also accepts darken, lighten, color-dodge, color-burn, hard-light, soft-light, exclusion, hue, saturation, color, luminosity, and plus-lighter.

Property Values

ValueDescriptionTry it
normalDefault. No blending with the backdropTry it
multiplyDarkens by multiplying colors with the backdropTry it
screenLightens by screening colors with the backdropTry it
differenceSubtracts colors for a high-contrast inverted lookTry it
initialResets to normalTry it
inheritTakes the parent’s mix-blend-modeTry it

How to Use mix-blend-mode

Put something behind the element, then pick a blend keyword.

  1. Give the element content or a background color/image to blend.
  2. Make sure a backdrop exists (parent background or overlapping siblings).
  3. Set mix-blend-mode on the element that should blend.
  4. Use isolation on a parent only when you want to limit blending to that group.
PieceRequired?Role
Element contentYesText, image, or background that will blend
Visible backdropYesWithout something behind, most modes look like normal
Blend keywordYesmultiply, screen, difference, and the others
isolationOptionalCreates a group so children blend inside it only

Live Preview

A colored circle sits on a striped backdrop. Change mix-blend-mode and watch the blend.

The stripes are the backdrop. The circle is what mix-blend-mode blends into them.

Blend

mix-blend-mode: multiply

CSS Examples

Each snippet focuses on mix-blend-mode. Use Try It Yourself for a live editor.

Example 1 — Multiply Overlay

Darken a box against a bright backdrop by multiplying colors.

CSS
<style>
  section {
    background: sandybrown;
  }

  div {
    background: #2563eb;
    mix-blend-mode: multiply;
  }
</style>

<section>
  <div>Multiply</div>
</section>
Try It Yourself

How It Works

  1. Paint a backdrop. The section uses sandybrown so there is something to blend with.
  2. Color the child. The blue box is the source that will blend.
  3. Multiply. mix-blend-mode: multiply darkens where the two colors overlap.
  4. White stays light. Multiply with white leaves the backdrop; darker colors pull the result down.

Example 2 — Screen Overlay

Lighten a dark box against the same backdrop.

CSS
<style>
  section {
    background: sandybrown;
  }

  div {
    background: #1e3a8a;
    mix-blend-mode: screen;
  }
</style>

<section>
  <div>Screen</div>
</section>
Try It Yourself

How It Works

  1. Same backdrop. The sandy parent stays behind the child.
  2. Dark source. A deep blue box is easier to read when screened.
  3. Screen lightens. screen is the opposite idea of multiply: results get brighter.
  4. Black disappears. Screening with black leaves the backdrop unchanged.

Example 3 — Difference Text

Invert text against a colorful gradient for a high-contrast headline.

CSS
<style>
  section {
    background: linear-gradient(135deg, #2563eb, #db2777);
  }

  h1 {
    color: #fff;
    mix-blend-mode: difference;
  }
</style>

<section>
  <h1>Blend</h1>
</section>
Try It Yourself

How It Works

  1. Build a colorful backdrop. The gradient gives difference something to invert against.
  2. Color the text. White is a common starting point for this effect.
  3. Apply difference. mix-blend-mode: difference subtracts colors for a high-contrast result.
  4. Text stays readable. As the gradient changes, the blended text flips with it.

Edge Cases & Pitfalls

If nothing seems to blend, check the backdrop and stacking context first.

backdrop

No backdrop, no visible blend

Modes need content behind the element. A plain white page often looks like normal.

vs

Not the same as background-blend-mode

background-blend-mode only mixes that element’s own backgrounds. mix-blend-mode mixes the whole element with what is behind it.

isolate

isolation can cut off the blend

A parent with isolation: isolate creates a group. Children then blend inside that group, not through to the page behind it.

stack

It creates a stacking context

Any non-normal value creates a stacking context, which can change how z-index and overlapping layers behave.

a11y

Check contrast after blending

Blended text can fail contrast checks on some backgrounds. Test readability, not just the visual effect.

Browser Support

mix-blend-mode is a browser visual property. Node.js, Deno, and Bun do not apply it.

✓ Baseline · Widely available since 2020

mix-blend-mode

Chrome 41+, Firefox 32+, Safari 8+, Edge 79+, Opera 29+, Samsung Internet 5+. Common blend modes are widely supported. plus-darker is Safari-only; plus-lighter needs newer browsers.

97% Common modes
Google Chrome 41+
Full support
Mozilla Firefox 32+
Full support
Apple Safari 8+ · some quirks
Partial
Microsoft Edge 79+
Full support
Opera 29+
Full support
Samsung Internet 5.0+
Full support
Internet Explorer No support
Not supported
mix-blend-mode Widely supported

Bottom line: Safe for modern sites with common modes. Skip Internet Explorer. Avoid plus-darker unless you only target Safari. Prefer plus-lighter only when cross-fade compositing needs it.

Key Takeaways

  • Role: blend an element’s content with the backdrop behind it.
  • Starter modes: multiply darkens, screen lightens, difference inverts contrast.
  • Initial value: normal. Not inherited. Creates a stacking context.
  • Tip: use background-blend-mode when you only want backgrounds to blend with each other.

One line: mix-blend-mode paints the element into whatever sits behind it — after you give it a backdrop.

Frequently Asked Questions

It sets how an element's content blends with its backdrop — the content rendered behind it in the same stacking context. Text, images, and backgrounds on that element all take part in the blend.
The initial value is normal. The element draws without blending into the backdrop.
mix-blend-mode blends the whole element with content behind it. background-blend-mode only blends that element's own background layers with each other.
You need visible content behind the element in the same stacking context. A parent with isolation: isolate, or a new stacking context that cuts off the backdrop, can stop the blend you expect.
No. Set it on the element that should blend. It also creates a stacking context.
It is Baseline and widely available: Chrome 41+, Firefox 32+, Safari 8+, Edge 79+, Opera 29+. Internet Explorer does not support it. plus-darker is Safari-only. It is a browser visual property, not a Node.js feature.

Next: object-fit

Learn how replaced content fits inside a fixed box.

object-fit tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful