Skip to content
3Wdesign
  1. Home
  2. Tools
  3. CSS gradient generator
Runs in your browserDesign

CSS gradient generator

Pick the colors, the type and the angle; the preview and the CSS update as you go. Runs in your browser.

#6366f1
#06b6d4
#f59e0b
135
Runs locally — nothing is uploaded
Result
Pick two colors.

How to use

  1. 1Pick two colors, or tick the box to add a third.
  2. 2Choose linear, radial or conic and set the angle.
  3. 3Compare the standard and the OKLab preview and copy the CSS you prefer.

It tells the browser to mix the colors in the OKLab color space instead of sRGB. Transitions between distant hues stay bright instead of turning grey in the middle.

Current Chrome, Edge, Firefox and Safari support color interpolation in gradients. The code puts a plain gradient first, so older browsers fall back to it.

For linear gradients 0deg points up and 90deg to the right. For conic gradients it is where the first color starts. Radial gradients ignore it.

Let's make something good

Tell us about your project — we reply within one business day.