CSS Holographic Gradient Background
A holographic gradient in pure CSS: blue, teal, gold and pink bands with a bright diagonal streak of light, like iridescent foil. Pick each color, then copy.
.bg-holographic {
--bg: #f0dff0;
--c1: #7585b7;
--c2: #6da89e;
--c3: #f6c380;
--c4: #ca75a1;
background-color: var(--bg);
background-image:
linear-gradient(115deg, transparent 25%, color-mix(in oklab, var(--bg) 80%, transparent) 38%, transparent 48%),
radial-gradient(ellipse 80% 120% at 20% 100%, var(--c2), transparent 60%),
radial-gradient(ellipse 70% 90% at 90% 90%, var(--c4), transparent 60%),
radial-gradient(ellipse 70% 80% at 85% 10%, var(--c1), transparent 60%),
radial-gradient(ellipse 60% 70% at 10% 5%, var(--c3), transparent 60%),
repeating-linear-gradient(120deg, var(--c1) 0, var(--c2) 8%, var(--c3) 16%, var(--c4) 24%, var(--c1) 32%);
background-blend-mode: screen, normal, normal, normal, normal, normal;
}<div class="
[--bg:#f0dff0]
[--c1:#7585b7]
[--c2:#6da89e]
[--c3:#f6c380]
[--c4:#ca75a1]
[background-color:var(--bg)]
[background-image:linear-gradient(115deg,_transparent_25%,_color-mix(in_oklab,_var(--bg)_80%,_transparent)_38%,_transparent_48%),_radial-gradient(ellipse_80%_120%_at_20%_100%,_var(--c2),_transparent_60%),_radial-gradient(ellipse_70%_90%_at_90%_90%,_var(--c4),_transparent_60%),_radial-gradient(ellipse_70%_80%_at_85%_10%,_var(--c1),_transparent_60%),_radial-gradient(ellipse_60%_70%_at_10%_5%,_var(--c3),_transparent_60%),_repeating-linear-gradient(120deg,_var(--c1)_0,_var(--c2)_8%,_var(--c3)_16%,_var(--c4)_24%,_var(--c1)_32%)]
[background-blend-mode:screen,_normal,_normal,_normal,_normal,_normal]
"></div><!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Holographic — CSS background</title>
<style>
html, body { height: 100%; margin: 0; }
.bg-holographic {
--bg: #f0dff0;
--c1: #7585b7;
--c2: #6da89e;
--c3: #f6c380;
--c4: #ca75a1;
background-color: var(--bg);
background-image:
linear-gradient(115deg, transparent 25%, color-mix(in oklab, var(--bg) 80%, transparent) 38%, transparent 48%),
radial-gradient(ellipse 80% 120% at 20% 100%, var(--c2), transparent 60%),
radial-gradient(ellipse 70% 90% at 90% 90%, var(--c4), transparent 60%),
radial-gradient(ellipse 70% 80% at 85% 10%, var(--c1), transparent 60%),
radial-gradient(ellipse 60% 70% at 10% 5%, var(--c3), transparent 60%),
repeating-linear-gradient(120deg, var(--c1) 0, var(--c2) 8%, var(--c3) 16%, var(--c4) 24%, var(--c1) 32%);
background-blend-mode: screen, normal, normal, normal, normal, normal;
}
</style>
</head>
<body class="bg-holographic"></body>
</html>Save the pattern as an image, with your current colors and settings.
How this holographic works
Holographic foil does two things: its colors shift in thin bands as the angle changes, and a bright streak of light slides across it. This gradient fakes both.
The bottom layer is a repeating-linear-gradient(120deg, …) that cycles blue, teal, gold and pink every 32%. Those narrow rainbow bands are the foil texture. Four large radial-gradient() glows sit on top, one color in each corner. They cover the bands in some places and let them show through in others, so the surface shifts color across its width instead of repeating evenly.
The top layer is the light streak: a diagonal band of --bg with background-blend-mode: screen. Screen only ever brightens, so the streak looks like light glancing off the foil rather than paint on top of it.
Change --bg to tint the streak, and pick each foil color separately.
Use it for fashion and beauty brands, Y2K and vaporwave designs, collectible cards and premium product launches.