Skip to content
toolsdocks

CSS linear gradient generator, plus radial and conic

Choose the gradient type, drag the color stops along the bar (or move them with the keyboard) and set the angle, shape or position. The preview uses the same CSS you copy.

Runs on your device
Loading tool…

How to use

  1. Choose a type and angle.
  2. Add, move and recolour stops.
  3. Copy the CSS or download a PNG.

Worked example

linear-gradient(135deg, #0F766E 0%, #22C55E 100%).

Supported formats and limits

OutputCSS, PNG
EngineLive CSS preview; optional OKLCH interpolation

Limitations

  • Interpolation in OKLCH requires a current browser; a fallback sRGB gradient is included in the CSS.

Questions

How do I make a CSS gradient without a gray middle?

Switch the interpolation to OKLCH. Blending in OKLCH keeps mid-tones bright where an sRGB blend between complementary colors turns gray. An sRGB fallback line is included for older browsers.

What does OKLCH interpolation change?

Colors are mixed in the OKLCH space, which usually avoids the gray middle of an sRGB blend between saturated colors. The copied CSS puts an sRGB fallback line first, so browsers without OKLCH support still show a close gradient.

Can I use the gradient as an image?

Yes. Download a PNG at the size you choose. It is drawn to match the browser's rendering of the same CSS.

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

See the privacy policy for how toolsdocks handles data.