Blend modes used to be a Photoshop thing. Today the same effects run natively in the browser with one line of CSS: tinted hero images, duotone photos, text that cuts through a background, logos that sit cleanly on colored sections. No image editing, and you can change them per theme or on hover.
This guide explains how CSS blend modes work, when to use mix-blend-mode versus background-blend-mode, and gives you ten practical recipes you can copy.
Key takeaways
background-blend-modeblends an element’s own background layers (image + color or gradient).mix-blend-modeblends an element with whatever is behind it.- Multiply darkens, screen lightens, overlay adds contrast. Those three cover most real-world uses.
- Use
isolation: isolateto stop a blend from leaking into the rest of the page, and always check text contrast after blending.
How CSS blend modes work
A blend mode decides how the color of a top layer combines with the color underneath it, pixel by pixel. CSS gives you two properties for this:
background-blend-modeworks inside a single element. If an element has a background image and a background color (or several gradients), it blends those layers together. Nothing outside the element is affected.mix-blend-modeblends a whole element (text, an image, an SVG) with the content behind it: its parent’s background, sibling elements, anything that sits underneath it.
/* Blend the element's own layers */
.hero {
background: url(photo.jpg) center / cover, #1f6ed4;
background-blend-mode: multiply;
}
/* Blend an element with what is behind it */
.hero h1 {
mix-blend-mode: overlay;
}
Both properties are supported in all current versions of Chrome, Edge, Firefox and Safari. Older Safari versions had gaps with some of the color-component modes (hue, saturation, color and luminosity), so test those if you support older iPhones.
The blend modes, grouped by what they do
There are sixteen values. Rather than memorizing them, think in groups:
- Darken:
multiply,darken,color-burn. The result is never lighter than either layer. White disappears. - Lighten:
screen,lighten,color-dodge. The result is never darker. Black disappears. - Contrast:
overlay,soft-light,hard-light. Darks get darker and lights get lighter. - Difference:
difference,exclusion. Colors are subtracted, which inverts against light backgrounds. - Color components:
hue,saturation,color,luminosity. One layer’s hue, saturation or brightness is combined with the other’s. - Normal:
normal, the default, with no blending.
10 CSS blend mode examples you can use
1. Multiply: a brand-color tint over a photo

Multiply is the workhorse. Put a photo and a brand color in the same background and the photo takes on the color while keeping its shadows. It is the easiest way to make mismatched stock photos look like a set, and white text on top stays readable because the image gets darker.
.card-image {
background: url(team.jpg) center / cover, #d4401f;
background-blend-mode: multiply;
}
2. Screen: a light, washed-out overlay

Screen is the opposite of multiply: everything gets lighter. Use it behind dark text when you want a photo to feel airy and faded, for example on a light-themed hero.
.hero--light {
background: url(office.jpg) center / cover, #cfe3ff;
background-blend-mode: screen;
}
3. Overlay: punchier images

Overlay multiplies the darks and screens the lights, so it boosts contrast while adding color. It works well with a gradient layer to give flat photos more depth.
.feature {
background:
linear-gradient(135deg, #ff7a59, #6c5ce7),
url(product.jpg) center / cover;
background-blend-mode: overlay;
}
4. Darken: remove a white logo background

Darken keeps whichever pixel is darker. That makes it (and multiply) handy for partner logos supplied as JPGs with a white box around them: on a light-colored section, the white simply disappears.
.logo-strip img {
mix-blend-mode: darken; /* or multiply */
}
5. Color dodge: glowing highlights

Color dodge brightens the base layer strongly where the top layer is light, which creates a glow. Use a radial gradient as the top layer to add a soft spotlight to a dark image.
.spotlight {
background:
radial-gradient(circle at 30% 40%, #ffb86b 0, transparent 45%),
url(stage.jpg) center / cover;
background-blend-mode: color-dodge;
}
6. Color burn: rich, moody shadows

Color burn darkens and saturates at the same time. It can be heavy, so pair it with a mid-tone color and use it for section backgrounds rather than photos of people.
.section--dramatic {
background: url(texture.jpg) center / cover, #8a5cf6;
background-blend-mode: color-burn;
}
7. Hard light: bold duotone effects

For a true two-color duotone, first make the photo grayscale, then blend a two-color gradient on top. Hard light gives a strong, poster-like result; soft light is a gentler version of the same idea.
.duotone {
position: relative;
isolation: isolate;
}
.duotone img {
filter: grayscale(1) contrast(1.1);
}
.duotone::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(#1b1f3b, #ff5e7e);
mix-blend-mode: hard-light;
}
8. Difference: text that inverts over any background

White text with mix-blend-mode: difference turns black over white areas and white over black areas. It is popular for sticky headers and custom cursors that scroll over mixed backgrounds. Check it carefully: over mid-gray areas the contrast can drop too low to read.
.sticky-label {
color: #fff;
mix-blend-mode: difference;
}
9. Color: recolor an image but keep its detail

The color mode takes the hue and saturation from the top layer and the brightness from the image. Every photo ends up in your brand color but keeps its lights and shadows, which is great for consistent blog thumbnails.
.thumb {
background: url(post.jpg) center / cover, #0f8a6c;
background-blend-mode: color;
}
10. Luminosity: calm, monochrome imagery

Luminosity is the reverse of color: brightness from the top layer, color from the bottom. Over a flat color, photos become softly tinted monochrome, which keeps busy images from competing with your text.
.quiet-bg {
background: url(city.jpg) center / cover, #2d3a4a;
background-blend-mode: luminosity;
}
Keep blends contained with isolation
A mix-blend-mode element blends with everything behind it, all the way down to the page background. If you only want it to blend inside a card, give the card isolation: isolate. It creates a new stacking context, so the blend stops at the card’s edge.
.card {
isolation: isolate; /* blends inside stay inside */
}
Accessibility and performance tips
- Check contrast after blending. Test text on the final blended result, not on the original colors. WCAG asks for at least 4.5:1 for body text.
- Test in dark mode. A multiply tint that looks great on white can turn muddy on a dark theme. Swap the blend mode or color inside a
prefers-color-scheme: darkquery if needed. - Don’t blend important content. Keep headings, prices and buttons readable without the effect, and use blends for decoration.
- Be careful with animation. Animating blended layers forces extra painting work. Keep animations short, and respect
prefers-reduced-motion.
Frequently asked questions
What is the difference between mix-blend-mode and background-blend-mode?
background-blend-mode blends the background layers of one element with each other. mix-blend-mode blends an entire element with whatever is behind it on the page.
Why is my mix-blend-mode not working?
Usually because there is nothing visible behind the element to blend with, or a parent creates a stacking context (for example with isolation, opacity below 1 or a transform) that cuts it off from the background you expected.
Which blend mode is best for putting text over images?
Multiply with a dark or saturated color, because it darkens the image evenly so white text stays readable. Always check the final contrast.



























One response to “CSS Blend Modes: A Practical Guide with 10 Examples”
Thanks!