Skip to the color picker

Coral to cyan gradient

A smooth coral to cyan gradient in CSS, blended in OKLab so the middle stays clean. Change the angle, add colors and copy the code.

Colors

Blend in

OKLab keeps the middle bright. sRGB is how old browsers blend and often turns gray in the middle.

Type
90°

CSS

background: linear-gradient(90deg, #ff7f50, #f49369, #e7a680, #d8b696, #c6c6ac, #b1d5c1, #95e4d5, #6ef2ea, #00ffff);
background: linear-gradient(90deg in oklab, #ff7f50, #00ffff);

Tailwind CSS v4

bg-linear-90/oklab from-[#ff7f50] to-[#00ffff]

Colors along the gradient

7

How coral and cyan blend in each color space

The same two colors give a different middle depending on the space the browser blends in. These are the exact colors at 50%. These two colors blend almost the same way in every space: the middle is #c6c6ac in OKLab and #80bfa8 in sRGB, so any of them works.

Blend inGradient previewMiddle colorLightnessChroma
OKLab#c6c6ac82%0.036
OKLCH#bcd14782%0.161
sRGB#80bfa875.5%0.074
LCH#a0d45d80.8%0.158
HSL#77ff2888.8%0.261

Questions about this gradient

How do I make a coral to cyan gradient in CSS?

Use background: linear-gradient(90deg in oklab, #ff7f50, #00ffff). Add a line before it with the sRGB version for very old browsers. Interpolation in OKLab works in all current browsers.

What color is halfway between coral and cyan?

Blended in OKLab, the color halfway between coral and cyan is #c6c6ac. A plain sRGB blend gives #80bfa8.

How do I make a coral to cyan gradient in Tailwind CSS?

In Tailwind CSS v4 use the classes bg-linear-90/oklab from-[#ff7f50] to-[#00ffff].