Spectrum Rainbow

Customize and copy the CSS

Code

background: #FF0000;
background: linear-gradient(135deg, #FF0000 0%, #FF7F00 16%, #FFFF00 32%, #00FF00 48%, #0000FF 64%, #4B0082 80%, #9400D3 100%);

Color stops

Color stops
StopPositionHEXRGBHSLOKLCH
Stop 10%
Stop 216%
Stop 332%
Stop 448%
Stop 564%
Stop 680%
Stop 7100%

Save image

Image size

About Spectrum Rainbow

Starting from #FF0000 and finishing on #9400D3, Spectrum Rainbow 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 deep (51%), with an average look that is highly saturated. The hue swings roughly 168° across the color wheel, which gives the gradient a wide, multi-tone sweep.

It suits premium-feeling hero sections and AI-product branding. Lightness changes a lot along this gradient (63% 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.

Spectrum Rainbow gradient: #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3

Purple color palettes