Rainbow Spectrum
Customize and copy the CSS
Code
background: #FF0000;
background: linear-gradient(135deg, #FF0000 0%, #FFFF00 25%, #00FF00 50%, #0000FF 75%, #8B00FF 100%);Color stops
| Stop | Position | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|---|
| Stop 1 | 0% | ||||
| Stop 2 | 25% | ||||
| Stop 3 | 50% | ||||
| Stop 4 | 75% | ||||
| Stop 5 | 100% |
Save image
Similar gradients
About Rainbow Spectrum
Starting from #FF0000 and finishing on #8B00FF, Rainbow Spectrum is a balanced multi-color gradient. By default it flows top-left to bottom-right at 135°, and #00FF00 sits near the middle.
The opening color is mid-tone (63% lightness) and the closing one is mid-tone (54%), with an average look that is highly saturated. The hue swings roughly 172° across the color wheel, which gives the gradient a wide, multi-tone sweep.
It suits energetic headers and attention-grabbing badges. Lightness changes a lot along this gradient (52% range), so no single text color holds up everywhere. Put text on a solid card or only over the stronger end.
Because the hue changes a lot, blending in the sRGB color space can turn the middle gray or muddy. Switch on OKLCH interpolation above to keep the transition clean, then copy the CSS with the "in oklch" hint.
