CSS blend mode generator — compare all 16 modes side by side

Pick mix-blend-mode or background-blend-mode, choose a mode or show all sixteen at once on two overlapping colours, and copy the matching CSS.

Live demo · real result from this tool
Property

Press Generate to create a result.

Processed on your device — nothing is uploaded.

How to use the CSS blend mode generator

  1. Choose the Property: mix-blend-mode to blend an element with what is behind it, or background-blend-mode to blend a background colour with a background image.
  2. Pick a Mode, or Show all modes to see a grid of all sixteen.
  3. Set Colour A and Colour B. In the mix view they are two overlapping circles on a cream background; in the background view, Colour B is blended with a sample photo.
  4. Copy the CSS and replace .stack, .top or photo.jpg with your own names.

What it does and when to use it

Blend modes combine colours the way layers do in an image editor. They let you tint a photo with a brand colour, place a dark logo on a textured background without a white box around it, make headings that invert over images, or build duotone hero images entirely in CSS. Because the blend happens in the browser, you can change colours later without re-exporting images.

To see the maths of each mode on two specific colours, use the colour blend modes tool. For simpler see-through effects, a semi-transparent colour from the colour opacity tool may be enough, and for blurring what is behind an element, the backdrop filter generator.

How it works

With mix-blend-mode the tool writes two rules:

.stack {
  isolation: isolate; /* keeps the blend inside this element */
}
.stack .top {
  mix-blend-mode: multiply;
}

With background-blend-mode it writes one rule that sets background-color to Colour B, a placeholder background-image: url("photo.jpg"), and the mode. The sixteen modes are normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color and luminosity.

MDN lists mix-blend-mode, background-blend-mode and isolation as Baseline widely available since January 2020.

Worked examples

The default multiply. Rose #f43f5e over blue #3b82f6: where the circles overlap, the colours multiply into a deep purple, and the CSS is the two-rule block above.

A single-colour photo. background-blend-mode, luminosity, Colour B #0ea5e9: the rule ends with background-blend-mode: luminosity;. The photo keeps its light and dark areas but takes its colour from the sky blue, a quick duotone look.

Limits and tips

  • Text contrast becomes unpredictable. Blended text changes colour with whatever is behind it, so check readable areas by eye and with the contrast checker.
  • Hue, saturation, color and luminosity need colourful layers; on greys they barely change anything.
  • Blending many large layers costs drawing time, especially during scrolling animations.

Frequently asked questions

What is the difference between mix-blend-mode and background-blend-mode?
mix-blend-mode blends a whole element, such as text, an image or a shape, with whatever is drawn behind it. background-blend-mode blends an element's own background layers with each other, for example a photo with a background colour, and nothing outside the element.
Why does the CSS include isolation isolate?
Without it, a blended element can mix with everything behind it, often right down to the page background. isolation isolate on the parent creates a separate group, so the blend only uses the content inside .stack.
Which modes are used most?
multiply darkens and suits putting a logo or texture onto a light background, screen lightens and suits glows, and overlay boosts contrast. difference is popular for text that inverts over images.
What CSS do I get with Show all modes?
One modifier class per mode, such as .stack .top--screen for mix-blend-mode or .blended--screen for background-blend-mode. Keep the one you like, or pick that mode from the list to get a single rule.
Do Colour A and Colour B end up in the CSS?
For background-blend-mode, Colour B becomes the background-color under the photo. For mix-blend-mode the colours only drive the preview circles, because your real content supplies the colours.

Sources

  1. mix-blend-mode - CSS | MDN — MDN Web Docs, accessed 2026-10-08
  2. background-blend-mode - CSS | MDN — MDN Web Docs, accessed 2026-10-08
  3. isolation - CSS | MDN — MDN Web Docs, accessed 2026-10-08

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close