Skip to the color picker

Orange to teal gradient

A smooth orange to teal 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, #ffa500, #e7a235, #ce9f49, #b59b58, #9c9763, #82926c, #658d74, #44877a, #008080);
background: linear-gradient(90deg in oklab, #ffa500, #008080);

Tailwind CSS v4

bg-linear-90/oklab from-[#ffa500] to-[#008080]

Colors along the gradient

7

How orange and teal 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 #9c9763 in OKLab and #809340 in sRGB, so any of them works.

Blend inGradient previewMiddle colorLightnessChroma
OKLab#9c976366.8%0.071
OKLCH#74a54c66.8%0.132
sRGB#80934062.8%0.111
LCH#57a74565.5%0.156
HSL#22c00070.1%0.234

Questions about this gradient

How do I make a orange to teal gradient in CSS?

Use background: linear-gradient(90deg in oklab, #ffa500, #008080). 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 orange and teal?

Blended in OKLab, the color halfway between orange and teal is #9c9763. A plain sRGB blend gives #809340.

How do I make a orange to teal gradient in Tailwind CSS?

In Tailwind CSS v4 use the classes bg-linear-90/oklab from-[#ffa500] to-[#008080].