Electric Afterglow gradient

A 3-color linear CSS gradient from #F6F02A to #2D1D94, interpolated in OKLCH so the middle stays vivid.

SunsetVibrantRedYellow

Stops

HEXRGBOKLCHPosition
#F6F02A rgb(246, 240, 42) oklch(93% 0.192 107.7) 0%
#E65245 rgb(230, 82, 69) oklch(63.7% 0.186 28.4) 50%
#2D1D94 rgb(45, 29, 148) oklch(34.9% 0.18 277.6) 100%

CSS

The first declaration is a plain sRGB gradient for every browser. The second interpolates in OKLCH, which keeps the middle as vivid as the ends.

background: linear-gradient(160deg, #F6F02A, #E65245, #2D1D94);
background: linear-gradient(160deg in oklch, #F6F02A, #E65245, #2D1D94);

Tailwind CSS v4

bg-linear-160/oklch from-[#F6F02A] via-[#E65245] to-[#2D1D94]

Make it your own

Change the stops, angle and type in the Gradient Maker, or turn the stops into a palette.