Blend Modes

Color

Blend Modes

Blend modes are rules that decide how the colors of two overlapping layers mix, letting images, colors, and text blend together naturally.

blend

Definition

A blend mode is the rule that decides how the colors of two overlapping layers get mixed. Normally the top layer simply covers whatever sits below it, but once you set a blend mode the two colors are combined through a specific formula, so the overlapping area takes on a new color. Multiply, for example, makes the overlap darker; screen does the opposite and makes it brighter; and overlay pushes the light areas lighter and the dark areas darker to boost contrast. In CSS you set this with the mix-blend-mode property, and it is the go-to tool for making images, colors, and text blend together naturally.

Why does it matter?

Without a blend mode, any color or text you place on top of an image always covers it, and the result tends to look awkward, like it is floating on the surface. A blend mode lets the top layer soak up the light, shadow, and texture of the image underneath, so the two feel like they were always a single picture. That is how you get text sitting comfortably over a photo, a color overlay that tints an image, or a duotone that dyes a photo in two tones — all in a few lines of code. The big win is that you can create these moods live, right in the browser, without ever opening an image editor. The catch is that the result depends on the colors of the layer below, so get into the habit of checking with your own eyes that it reads the way you intended on every background. Because the effect is powerful, it also pays to learn some restraint and use it without burying what is underneath.

Common mistakes

  • Not checking whether text placed with a blend mode is still readable. Depending on the brightness of the background image, the blended text can show up clearly in some spots and vanish in others, so check that it stays legible across the whole image.
  • Getting carried away and piling on several blend modes at once. When the mixing gets excessive the colors turn muddy and the screen looks messy. It works far better to use it sparingly, in one place with a clear purpose.
  • Trying to memorize which mode produces which color. Every mode gives a different result depending on the background color, so changing the value and checking with your eyes is much faster and more reliable than learning the names by heart.

Practical tips

  • Pick the mode that matches the effect you want. Reach for multiply when you want a dark, inky, shadow-soaked feel, screen for a bright glow where light spreads, and overlay when you want to bring out the contrast in a photo — each one nails a specific mood.
  • When you are laying text over an image, tinting with a color overlay, or building a duotone, set it with the CSS mix-blend-mode property. You can apply the effect and tweak the value right in the browser, with no separate image editing.
  • Support for mix-blend-mode is fairly generous, but on important screens check for it with @supports and have a fallback so the content still looks fine when the effect is missing. Be especially careful not to let must-read elements like text or buttons rely on the blend effect alone.

Ask your AI

When text over an image drops out on some backgrounds

In the code below, the text sitting over the background image drops out in some spots depending on the background's brightness — rework it so it blends naturally into the image with CSS mix-blend-mode yet stays readable at every point across the whole image. Pick the mode with reasoning: multiply for a bright photo (the overlap goes darker), screen for a dark photo (the overlap goes brighter), or overlay when you want to keep the photo's contrast (lights lighter, darks darker). Don't let the text rely on the blend effect alone — add a fallback like a semi-transparent backing plate or text-shadow, and wrap the whole thing in @supports (mix-blend-mode: overlay) so the text still shows correctly in browsers that don't support it.

When you want to tint a photo or make a duotone

I want [the mood you want on the photo — e.g. a hero background dyed in the brand color]. Build it on the photo below as a color overlay that tints the image or a duotone that dyes it in two tones, using CSS mix-blend-mode. Use multiply on the color layer for a calm, inky darkening, screen to lift it with a bright glow, or overlay to keep the photo's light and shadow and boost contrast — and tell me which you chose and why. For the duotone, set a dark tone [color 1] and a light tone [color 2], and leave a note that the result shifts per background photo, so check it looks right on other images too.

When overused blends have turned the screen muddy

The code below piles several mix-blend-mode layers on top of each other, so the colors have gone muddy and the screen looks messy. Strip the blends down to the one place with a clear purpose and clean it up. Keep that spot on a single mode matched to its purpose — multiply for a dark, shadowy feel, screen for a bright glow, overlay to boost contrast — and note why that mode. Give me a table of what you removed, the one spot you kept, and how the colors read cleaner before vs after.

Related concepts