CSS Six Point Gradient Background
A six point gradient in pure CSS: see-through radial glows from the four corners and the middle of the top and bottom edges. Pick all seven colors live.
.bg-six-point-gradient {
--bg: #fbe7cc;
--c1: #cc3f47;
--c2: #de6f3d;
--c3: #f09f33;
--c4: #aa2068;
--c5: #880088;
--c6: #cc3f47;
--opacity: 80%;
--spread: 45%;
background-color: var(--bg);
background-image:
radial-gradient(circle at 0 0, color-mix(in srgb, var(--c1) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c2) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 100% 0, color-mix(in srgb, var(--c3) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 0 100%, color-mix(in srgb, var(--c4) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--c5) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c6) var(--opacity), transparent), transparent var(--spread));
}<div class="
[--bg:#fbe7cc]
[--c1:#cc3f47]
[--c2:#de6f3d]
[--c3:#f09f33]
[--c4:#aa2068]
[--c5:#880088]
[--c6:#cc3f47]
[--opacity:80%]
[--spread:45%]
[background-color:var(--bg)]
[background-image:radial-gradient(circle_at_0_0,_color-mix(in_srgb,_var(--c1)_var(--opacity),_transparent),_transparent_var(--spread)),_radial-gradient(circle_at_50%_0,_color-mix(in_srgb,_var(--c2)_var(--opacity),_transparent),_transparent_var(--spread)),_radial-gradient(circle_at_100%_0,_color-mix(in_srgb,_var(--c3)_var(--opacity),_transparent),_transparent_var(--spread)),_radial-gradient(circle_at_0_100%,_color-mix(in_srgb,_var(--c4)_var(--opacity),_transparent),_transparent_var(--spread)),_radial-gradient(circle_at_50%_100%,_color-mix(in_srgb,_var(--c5)_var(--opacity),_transparent),_transparent_var(--spread)),_radial-gradient(circle_at_100%_100%,_color-mix(in_srgb,_var(--c6)_var(--opacity),_transparent),_transparent_var(--spread))]
"></div><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Six Point Gradient — CSS background</title>
<style>
html, body { height: 100%; margin: 0; }
.bg-six-point-gradient {
--bg: #fbe7cc;
--c1: #cc3f47;
--c2: #de6f3d;
--c3: #f09f33;
--c4: #aa2068;
--c5: #880088;
--c6: #cc3f47;
--opacity: 80%;
--spread: 45%;
background-color: var(--bg);
background-image:
radial-gradient(circle at 0 0, color-mix(in srgb, var(--c1) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c2) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 100% 0, color-mix(in srgb, var(--c3) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 0 100%, color-mix(in srgb, var(--c4) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--c5) var(--opacity), transparent), transparent var(--spread)),
radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--c6) var(--opacity), transparent), transparent var(--spread));
}
</style>
</head>
<body class="bg-six-point-gradient"></body>
</html>Save the pattern as an image, with your current colors and settings.
How this six point gradient works
Six semi-transparent radial-gradient() layers sit over a pale base: one in each corner, plus one in the middle of the top edge (at 50% 0) and one in the middle of the bottom edge (at 50% 100%). The extra two make the color change across the width as well as down it, so wide hero sections don’t look empty in the middle.
Each glow starts as a color-mix() of its color at --opacity and fades to transparent by --spread. The default sets warm colors along the top (red, orange, yellow) and deeper ones along the bottom (pink, purple, red). Neighbors on the color wheel sit next to each other, so where the glows overlap they blend into richer tones instead of grey.
The light yellow base shows through between the glows like soft light. Lower --spread for six separate spots, or raise it for a full wash. Swap the base for a dark color to make the glows look neon.
Use it for wide banners, festival and summer pages, and landing page heroes.