Gradient stops
#FF3B30 0% #FF9500 20% #FFD60A 38% #34C759 56% #0A84FF 76% #AF52DE 100% A six-stop rainbow gradient moving through red, orange, yellow, green, blue, and violet.
A decorative spectrum gradient. Avoid placing essential text across the full gradient without checking contrast over every region.
A rainbow gradient is inherently multi-hue. It is most useful as decoration, data-adjacent color, or artwork—not as a single dependable text background.
#FF3B30 0% #FF9500 20% #FFD60A 38% #34C759 56% #0A84FF 76% #AF52DE 100% .example {
background: linear-gradient(90deg, #FF3B30 0%, #FF9500 20%, #FFD60A 38%, #34C759 56%, #0A84FF 76%, #AF52DE 100%);
} Gradient contrast varies across the surface. Test important text against every area it may overlap instead of relying on a single midpoint color.
Lower-intensity spectrum for broad backgrounds.
linear-gradient(90deg, #FCA5A5 0%, #FCD34D 25%, #86EFAC 50%, #93C5FD 75%, #C4B5FD 100%) Saturated decorative spectrum.
linear-gradient(90deg, #EF4444 0%, #F97316 20%, #EAB308 38%, #22C55E 56%, #3B82F6 76%, #A855F7 100%) Five-stop diagonal version for hero accents.
linear-gradient(135deg, #F43F5E 0%, #F59E0B 25%, #10B981 50%, #0EA5E9 75%, #8B5CF6 100%) A blue-to-purple gradient moving from saturated blue through indigo to violet.
A clean violet-to-cyan gradient with a soft violet midpoint and copy-ready CSS.
A three-stop blue gradient from pale sky blue through vivid blue to deep navy.
A green gradient moving from light mint through emerald to deep forest green.