Tätä opasta ei ole vielä omalla kielelläsi, joten tässä se on englanniksi.
Lyhyesti
- A holographic gradient imitates materials that change colour with the viewing angle, such as holographic foil, soap bubbles and mother of pearl.
- Real iridescence comes from light interfering in thin layers or scattering off fine ridges, which is why the colours shift in rainbow order as you move.
- On screen, a conic gradient of pale rainbow hues plus a moving white sheen is the most convincing way to fake it.
- Holographic gradients look best in pale, pearly tones with a bright highlight, rather than in fully saturated rainbow colours.
- Holographic effects work as an accent on a card, a sticker or a product surface, and tire quickly when they cover everything.
Tällä sivulla
A holographic gradient is a gradient that imitates iridescent materials, like holographic foil, soap bubbles, oil on water or mother of pearl, whose colour changes as you move them. On screen that means pale rainbow hues flowing into each other, usually with a bright white sheen crossing the surface. The best ones feel like a material catching light; the worst look like a rainbow clip-art sticker. The difference is almost entirely restraint.
What makes something iridescent
Iridescence is colour that depends on the angle you look from. In a soap bubble or an oil slick, light reflects off the top and bottom of a very thin film, and the two reflections interfere, strengthening some colours and cancelling others. In holographic foil and on the back of a CD, microscopic ridges split light into its colours, like a prism. Either way, the result is the same to the eye: colours in rainbow order that slide across the surface as it tilts.
| Look | What you see | How to fake it |
|---|---|---|
| Holographic foil | Sharp bands of rainbow colour that jump with angle | Conic or striped gradients with crisp highlights |
| Iridescent | Soft rainbow shifts across a smooth surface | Pale conic or mesh gradients, slow sheen |
| Pearlescent | Mostly white with faint pink, blue and green hints | Near-white radial gradient with tinted edges |
| Oil slick | Rainbow colours swirling on a dark surface | Dark ground with muted rainbow bands |
| Chrome | Grey mirror bands, no rainbow | Hard light and dark bands in greys |
Holographic gradient examples
Why conic gradients work so well
A conic gradient changes colour as you travel around a point, so its hues fan out from a centre, like light scattering off a curved foil. Set the centre off the edge of the shape and the fan becomes gentle diagonal bands. Change the from angle and every colour slides, which is exactly what iridescence does when you tilt it. The details of the syntax are in conic gradients.
Keep every hue at a similar, high lightness. Real foil reflects a lot of light, so its colours are bright and slightly washed with white. If one colour is much darker or more saturated than the rest, it reads as a stripe of paint instead of a reflection. Pale colours also forgive: they don't turn grey where they meet, because they are all so close to white.
How to make a holographic effect in CSS
Two layers do most of the work: a pale conic rainbow underneath, and a narrow band of white on top that moves across when the element is hovered, like light sliding over foil. Keep the movement slow and switch it off for people who prefer reduced motion.
.holo {
background-image:
linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.6) 50%, transparent 65%),
conic-gradient(from 210deg at 50% 50%, #ffd6f5, #d9c8ff, #bfe9ff, #c9ffe6, #fff4c2, #ffd6f5);
background-size: 250% 100%, 100% 100%;
background-position: 100% 0, 0 0;
transition: background-position 0.9s ease;
border-radius: 20px;
}
.holo:hover {
background-position: 0% 0, 0 0;
}
@media (prefers-reduced-motion: reduce) {
.holo { transition: none; }
}For more realism, add a very fine grain over the whole surface, and let a second, fainter sheen run at a different angle. If you want the whole field to drift on its own, animated gradient backgrounds shows how to animate gradients efficiently.
Keeping holographic gradients tasteful
Clip art
- Fully saturated rainbow colours
- Holographic effect on every surface
- Busy foil behind body text
- Fast, constant shimmer
Material
- Pale, pearly hues in rainbow order
- One holographic object: a card, a badge, a product
- Solid or calm ground behind the words
- A slow sheen that moves when something happens
Holographic finishes belong to Y2K aesthetics, beauty packaging, trading cards, festival wear and tech accessories. On a brand, treat the effect like foil on a printed box: used in one place, it signals something special. Pair it with plenty of white or a calm pastel ground and dark type.
A drop announcement is a natural home for a pale, shifting surface: the finish itself says limited.
Holographic in print and packaging
No combination of ordinary inks can reproduce real iridescence, because printed ink doesn't change with angle. A printed holographic gradient will look like a pale rainbow, which can be lovely, but for the real thing you need holographic foil or iridescent film from your printer. If you are designing for both, keep the screen version pale and simple, so the printed one doesn't disappoint; see print gradients.
You can find pale, pearly Marks in the Market by searching colour words like "pearl" or "iridescent lilac", and design with them at any size.
Usein kysyttyä
What is a holographic gradient?
A holographic gradient imitates iridescent materials such as foil, soap bubbles and pearl, using pale rainbow hues in order and a bright sheen.
What is the difference between holographic and iridescent?
Holographic foil shows sharper, jumping rainbow bands; iridescent surfaces show softer, smoother colour shifts. Both change with viewing angle.
How do I make a holographic effect in CSS?
Use a pale conic-gradient of rainbow hues and layer a moving white linear-gradient sheen over it, animated on hover or scroll.
What colours make a holographic gradient?
Pale pink, lilac, ice blue, mint and butter yellow, in rainbow order, plus white for the sheen.
Can you print a holographic gradient?
Ink alone can only print a pale rainbow. For a true holographic finish, ask your printer about holographic foil or iridescent film.
Kirjoittanut Gradiently
Gradientlyn tiimi. Gradiently on Markien ympärille rakennettu suunnittelutyökalu: eläviä liukuvärejä, joiden ansiosta kaikki suunnittelemasi näyttää omaltasi.
Katso profiilimme


