CSS Pastel Gradient Background
A pastel gradient background in pure CSS: soft pink, lilac, periwinkle and sea-green tints in a gentle diagonal blend. Pick all four colors and the angle.
.bg-pastel-gradient {
--c1: #eed2e1;
--c2: #f0dff0;
--c3: #c8cee2;
--bg: #a8cbc5;
--angle: 135deg;
background-color: var(--bg);
background-image: linear-gradient(var(--angle), var(--c1), var(--c2), var(--c3), var(--bg));
}<div class="
[--c1:#eed2e1]
[--c2:#f0dff0]
[--c3:#c8cee2]
[--bg:#a8cbc5]
[--angle:135deg]
[background-color:var(--bg)]
[background-image:linear-gradient(var(--angle),_var(--c1),_var(--c2),_var(--c3),_var(--bg))]
"></div><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pastel Gradient — CSS background</title>
<style>
html, body { height: 100%; margin: 0; }
.bg-pastel-gradient {
--c1: #eed2e1;
--c2: #f0dff0;
--c3: #c8cee2;
--bg: #a8cbc5;
--angle: 135deg;
background-color: var(--bg);
background-image: linear-gradient(var(--angle), var(--c1), var(--c2), var(--c3), var(--bg));
}
</style>
</head>
<body class="bg-pastel-gradient"></body>
</html>Save the pattern as an image, with your current colors and settings.
How this pastel gradient works
A pastel gradient uses the palest tint of each color, so the whole background stays light and calm. This one blends four of the brand’s lightest tints: pink, lilac, periwinkle and sea green.
It’s one linear-gradient(var(--angle), …) with four evenly spaced stops. The tints are close in brightness, so the blend never gets a dark band, and dark text stays readable everywhere on it.
Neighbors on the color wheel blend best: pink sits next to lilac, lilac next to periwinkle, and so on. If you add a yellow or peach tint, place it at an end, next to the pink.
--angle sets the direction. 135deg (the default) runs from the top-left corner to the bottom-right. Use 180deg for a soft top-to-bottom wash behind a long page.
Use it for baby and wedding sites, wellness and skincare brands, soft SaaS landing pages and notebook-style apps.