// experiment with all css blend modes in real time
Experiment with all 16 CSS blend modes on layered elements in real time. Adjust colors, opacity, and upload images — export the generated CSS snippet instantly.
Click any of the 16 blend mode buttons at the top of the tool to apply it instantly.
Set colors, opacity, and patterns for each layer. Upload your own images for realistic previews.
Toggle between mix-blend-mode and background-blend-mode output, then copy the snippet.
CSS Blend Mode Playground lets you experiment with all 16 blend modes defined by the W3C Compositing and Blending specification. Blend modes control how two layers interact visually — the same concept used in Photoshop, Figma, and other design tools, but applied directly in CSS.
mix-blend-mode controls how a CSS element blends with elements behind it in the stacking context. background-blend-mode controls how multiple background layers within a single element blend with each other. Use mix-blend-mode for HTML element layering, and background-blend-mode for layered CSS backgrounds.
There are 16 CSS blend modes defined in the W3C spec: normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, hue, saturation, color, and luminosity. The last four (hue, saturation, color, luminosity) are non-separable modes that operate on the full color value rather than per-channel.
Yes — mix-blend-mode and background-blend-mode are supported in all modern browsers including Chrome, Firefox, Safari, and Edge. Internet Explorer does not support them, but IE is no longer supported by Microsoft. Global browser support is above 97% as of 2025.
By default, a blended element interacts with everything behind it all the way to the root. Adding isolation: isolate to a parent element creates a new stacking context, so child blend modes only interact with other elements inside that container — not elements further down the page.
The screen blend mode in CSS is identical to Photoshop's Screen. It inverts both layers, multiplies them, then inverts the result. It always produces a lighter result and is great for adding glow effects or combining bright highlights.
Stack two color overlays on a grayscale image: apply mix-blend-mode: multiply on the highlight color layer and mix-blend-mode: screen on the shadow color layer. Alternatively, use background-blend-mode with a gradient and the image as two background layers. The Duotone preset in this tool demonstrates this technique.
CSS blend modes are GPU-accelerated in modern browsers, so performance impact is minimal for typical use. However, applying blend modes to large elements or many layers simultaneously can trigger compositing layers and increase GPU memory usage. Test on mobile devices if you plan to use heavy blending in production.
Yes — you can animate properties like opacity, background-color, and transform on blended layers to create dynamic effects. The blend mode property itself is not animatable (it's discrete), but the visual result changes fluidly as the underlying values animate.
CSS blend modes control how the colors of two overlapping elements or backgrounds combine visually. Defined in the W3C Compositing and Blending Level 1 specification, they bring Photoshop-style layer blending directly into the browser using pure CSS — no JavaScript, no canvas, no SVG filters required.
Two CSS properties provide this capability: mix-blend-mode applies to HTML elements and determines how they blend with what lies behind them in the stacking order. background-blend-mode applies within a single element and controls how multiple background layers (image, color, gradient) blend with each other.
💡 Looking for premium CSS templates and UI kits? MonsterONE offers unlimited downloads of templates, UI kits, and design assets — worth checking out.
Understanding each blend mode helps you choose the right one for your design. Here's a breakdown of all 16:
These two properties are often confused. mix-blend-mode is applied to an element and affects how that entire element — including its content — composites against what's behind it in the document. background-blend-mode is applied to an element and only affects how its own background layers (multiple backgrounds via the CSS background shorthand) blend with each other.
For UI effects like duotone images or gradient overlays on photos, background-blend-mode is often more practical. For blending entire UI sections — like a colored overlay that lets text from behind show through — mix-blend-mode is the right choice.
Duotone Photography: Apply two gradient layers with multiply and screen blend modes to convert photos into striking two-color compositions. This is a staple of modern editorial web design popularized by Spotify.
Texture Overlays: Blend a noise or grain texture layer over a solid background using overlay or soft-light to add depth and tactility without extra images.
Color Grading: Use the color blend mode to apply a color tint to images without flattening their contrast — the result is like applying a color gel to a photograph.
Knockout Text: Using mix-blend-mode: difference on white text creates a "knockout" effect where the text inverts whatever color is behind it — it always remains readable.
Gradient Mesh Backgrounds: Stack multiple radial gradient layers with screen or lighten blend modes to create rich, colorful mesh gradient backgrounds entirely in CSS.
One subtlety of mix-blend-mode is that blended elements interact with everything behind them in the current stacking context — potentially including your page background, navigation, or unrelated sections. To constrain blending to a specific group of elements, wrap them in a container and apply isolation: isolate. This forces a new stacking context so blend modes only interact within the group.
Blend modes in CSS trigger GPU compositing layers. Modern browsers handle this efficiently, but there are a few things to keep in mind: avoid blending large, frequently-redrawn elements; test on mid-range mobile devices; and avoid stacking too many blended layers (5+ can cause noticeable memory overhead on older hardware). For most decorative uses — hero sections, card overlays, image effects — performance is a non-issue.
Both mix-blend-mode and background-blend-mode have excellent browser support across Chrome, Firefox, Safari, and Edge (global caniuse coverage above 97%). They are safe to use in production without fallbacks in virtually all modern web projects.