---
title: "CSS background-blend-mode Property Tutorial"
url: https://weworkworldwide.com/tutorials/css-background-blend-mode-property-tutorial/
description: "CSS background-blend-mode Property Tutorial: In this section, we will learn what the background-blend-mode property is and how to use it in CSS."
date: 2026-11-29T17:00:03+00:00
source: https://weworkworldwide.com/llms.txt
---

# CSS background-blend-mode Property Tutorial

In this section, we will learn what the background-blend-mode property is and how to use it in CSS.

Blending two images:

Click here to run the example.

Blending one image with background color:

Click here to run the example.

## CSS background-blend-mode Property Definition and Usage

When we set multiple images for the background of an element, by default those images that listed first will sit in front of those that come afterwards. But in most cases we want the two images be visible to audience and not just one of them.

This is where blending comes in.

CSS provided a property named `background-blend-mode` by which we can blend two background images and create an illusion of merged images.

Note: The `background-blend-mode` property also can be used to blend *background-image* and *background-color* as well.

## CSS background-blend-mode Property Syntax

``` line-numbers
background-blend-mode: normal|multiply|screen|overlay|darken|lighten|color-dodge|saturation|color|luminosity;
```

## CSS background-blend-mode Property Value

There are 15 values that can be set for this property. Each uses a different mathematical calculation to control how images should be blended:

[TABLE]

The best way to learn how these values can blend the two or more background images is to use them in practice. So for this reason we have created two simple apps and putted at the beginning of this section.

The first one “blending two images” allows you to upload two images and select each of these values to see how the two images blend together.

The second app “Blending one image with a background color”, it allows you to upload one image and change background color and then select each of these values to see how background image and background color blend together.

The table below gives a description for each of the values used for `background-blend-mode` property:

[TABLE]

This table is taken from the “CSS in Depth” book (Manning publication).

Note: there’s another value we can set for this value which is “normal”. This is the default value and it is neutral (no blending).

Of course the two global values “*initial*” and “*inherit*” can also be used for this property.

## Example: background-blend-mode property in CSS

``` line-numbers
<!DOCTYPE html>
<html>
<head>
<title>CSS is fun :)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin:unset;
box-sizing: border-box;
}
div{
width:80vw;
height:80vh;
padding: 1em;
margin:0.5em;
}
.three{
background-image: url(photos/forest.jpg) , url(photos/arc-de-triomphe-5432392_1280.jpg);
background-size: contain;
background-repeat: no-repeat;
background-blend-mode: exclusion;
}
</style>
</head>
<body>


</body>
</html>
```

## Example: CSS background-blend-mode property multiply

``` line-numbers
<!DOCTYPE html>
<html>
<head>
<title>CSS is fun :)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin:unset;
box-sizing: border-box;
}
div{
width:80vw;
height:80vh;
padding: 1em;
margin:0.5em;
}
.three{
background-image: url(photos/forest.jpg) , url(photos/arc-de-triomphe-5432392_1280.jpg);
background-size: contain;
background-repeat: no-repeat;
background-blend-mode: multiply;
}
</style>
</head>
<body>


</body>
</html>
```

## Example: CSS background-blend-mode property difference

``` line-numbers
<!DOCTYPE html>
<html>
<head>
<title>CSS is fun :)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin:unset;
box-sizing: border-box;
}
div{
width:80vw;
height:80vh;
padding: 1em;
margin:0.5em;
}
.three{
background-image: url(photos/forest.jpg) , url(photos/arc-de-triomphe-5432392_1280.jpg);
background-size: contain;
background-repeat: no-repeat;
background-blend-mode: difference;
}
</style>
</head>
<body>


</body>
</html>
```

## Example: CSS background-blend-mode property hard-light value

``` line-numbers
<!DOCTYPE html>
<html>
<head>
<title>CSS is fun :)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style type="text/css">
*{
margin:unset;
box-sizing: border-box;
}
div{
width:80vw;
height:80vh;
padding: 1em;
margin:0.5em;
}
.three{
background-image: url(photos/forest.jpg) , url(photos/arc-de-triomphe-5432392_1280.jpg);
background-size: contain;
background-repeat: no-repeat;
background-blend-mode: hard-light;
}
</style>
</head>
<body>


</body>
</html>
```
