Try blend modes on a photo
CSS mix-blend-mode combines the colours of text or a shape with the photo underneath. Select a blend mode to see its effect on the image.
normalShows the overlay in its original colours.Coloured type meets layered materials. Compare multiply with screen. One gives the letters an ink-like quality and the other makes them lighter.
HTML + CSS for this preview
<div class="blend-farbspiel">
<img src="https://anitamostofa.com/bilder/css-blend-farbspiel.webp" alt="">
<div class="blend-layer">
<div class="blend-text"><span>COLOUR</span><span>PLAY</span></div>
</div>
</div>
<style>
/* anitamostofa.com */
.blend-farbspiel {
display: grid;
place-items: center;
isolation: isolate;
container-type: inline-size;
overflow: hidden;
}
.blend-farbspiel > * { grid-area: 1 / 1; }
.blend-farbspiel img { display: block; width: 100%; }
.blend-farbspiel .blend-layer {
display: grid;
place-items: center;
position: relative;
width: 100%;
height: 100%;
mix-blend-mode: normal;
}
.blend-farbspiel .blend-text {
position: relative;
text-align: center;
font: 700 clamp(1.2rem, 15cqi, 10rem) / .88 Montserrat, sans-serif;
letter-spacing: -.05em;
}
.blend-farbspiel .blend-text span { display: block; color: #e456a6; }
.blend-farbspiel .blend-text span + span { color: #4d5ef7; }
</style>Every mix-blend-mode value in plain language
Original
normal- Shows the overlay in its original colours.
Darkening
darken- Keeps the darker of the text and image values in each colour channel.
multiply- Darkens the text and lets the image texture show through. Over white, the text keeps its colour.
color-burn- Deepens shadows and boosts contrast. Midtones can take on a strong tint.
Lightening
lighten- Keeps the lighter of the text and image values in each colour channel.
screen- Gently brightens the text. Over black, the text keeps its colour.
color-dodge- Brightens more strongly. Highlights can wash out to white.
Contrast and inversion
overlay- Boosts highlights and shadows based on the brightness of the image.
soft-light- Gently lightens or darkens, as if the letters were under diffused light.
hard-light- The text colour controls whether it lightens or darkens. The contrast is stronger than with soft-light.
difference- White inverts the colours beneath the letters. Dark parts of the image turn light inside white text.
exclusion- Similar to difference, with softer midtones. Both modes behave the same with pure white.
Hue and brightness
hue- Applies the hue of the text while keeping the saturation and luminosity of the image.
saturation- Applies the saturation of the text while keeping the hue and luminosity of the image.
color- Tints the image texture with the hue and saturation of the text. Luminosity comes from the image.
luminosity- Applies the luminosity of the text while keeping the hue and saturation of the image.
Plus effects
plus-darker- Combines the colours so dark areas become particularly strong. The preview reproduces the effect when native support is unavailable.
plus-lighter- Adds the colours together. Letters can become very bright, especially over the light parts of an image.
Use a blend mode on your own website
Put the photo and its overlay in the same section. Set isolation: isolate on that section and add mix-blend-mode to the overlay. Pick a short display line and check that it stays readable on desktop and mobile.
Try my CSS button effects with live demos. For help bringing colour, imagery and type together, explore my web design services.


