Apply CSS blend modes and overlays interactively to any image.

.overlay {
position: absolute;
inset: 0;
background-color: #3b82f6;
opacity: 0.50;
mix-blend-mode: overlay;
}mix-blend-mode is a CSS property that controls how an element's content blends with the content behind it. When applied to a semi-transparent overlay on an image, it creates color grading, tints, and duotone effects. The overlay element sits on top of the image and blends based on the selected mode (multiply, overlay, soft-light, etc.). Each mode uses a different compositing formula; multiply darkens, screen lightens, overlay combines both.
Blend modes compute the final pixel color from a source (the blended element) and a backdrop (the content behind). multiply multiplies source and backdrop RGB values; screen inverts, multiplies, then inverts again for a lightening effect. overlay multiplies dark areas and screens light areas. Use a container with position: relative and an overlay with position: absolute; inset: 0 so the overlay covers the image. Pair overlays with gradients from our CSS Gradient Generator for richer effects.
mix-blend-mode blends the entire element (including its content) with the backdrop. background-blend-mode blends multiple background layers (images, gradients, colors) within a single element. Use mix-blend-mode when you have a separate overlay div on top of an image. Use background-blend-mode when stacking backgrounds directly: background: url(img.jpg), linear-gradient(...); background-blend-mode: overlay;. The latter avoids an extra DOM element but gives less flexibility for positioning.
Hero sections use dark overlays (multiply or darken) to improve text contrast. Gallery cards use soft tints (soft-light, overlay) for branding. Duotone effects use color or luminosity with a solid overlay. Overlays can be combined with clip-path for shaped masks; see the Clip-Path Generator. Use a Box Shadow Generator for cards that hold overlay images.
multiply darkens and adds depth; ideal for dark overlays. screen lightens; use with light overlays. overlay boosts contrast and works well for vintage or cinematic looks. soft-light is subtler, good for warm tints. color applies the overlay's hue while preserving luminance; ideal for duotones. luminosity does the inverse. Experiment with opacity (0.3 to 0.6 typically) to control intensity.
mix-blend-mode is supported in all modern browsers. Use @supports (mix-blend-mode: overlay) to provide a fallback: a semi-transparent overlay without blend mode will still darken or tint the image, just without the precise compositing. For critical hero images, ensure the underlying image and text contrast work even without the overlay.
Applying mix-blend-mode to the image itself blends it with the page background instead of an overlay. Use a wrapper with the image and a sibling overlay div. Forgetting position: relative on the container breaks absolute positioning. Using full opacity (1) with dark blend modes can make images nearly black; keep opacity around 0.3 to 0.6. Blending white or black overlays with normal mode ignores the blend and only changes opacity.
mix-blend-mode controls how an element's content blends with the content behind it. Used with a semi-transparent overlay on an image, you get color grading or tint effects.
Wrap your image in a container with position: relative. Add a div with the generated overlay styles (position: absolute; inset: 0; background; opacity; mix-blend-mode). The overlay sits on top of the image.
Explore these related free tools to enhance your productivity and workflow.
Create and preview CSS filter effects (blur, brightness, contrast, sepia, etc)
Generate CSS box shadows with custom offsets, blur, spread, color, and opacity
Create beautiful linear and radial CSS gradients with custom colors, angles, and stops
Visual tool for CSS clip-path shapes with presets and custom points