Midnight Rosewater gradient

A 2-color linear CSS gradient from #7B1C4A to #15002C, interpolated in OKLCH so the middle stays vivid.

DarkTwo-tonePurplePink

Stops

HEXRGBOKLCHPosition
#7B1C4A rgb(123, 28, 74) oklch(39.9% 0.136 355.8) 0%
#15002C rgb(21, 0, 44) oklch(16.2% 0.086 300.5) 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(90deg, #7B1C4A, #15002C);
background: linear-gradient(90deg in oklch, #7B1C4A, #15002C);

Tailwind CSS v4

bg-linear-90/oklch from-[#7B1C4A] to-[#15002C]

Make it your own

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