Skip to content
EditToolbelt

Menu

Gradient Generator

Build linear, radial or conic gradients, then copy the CSS or save a PNG at your size.

Runs in your browser. Nothing you type is sent anywhere.

Type
deg
Pick#2563eb
%
Pick#f97316
%
Stops
Blend
px
px
Stops
2
Blend
Oklch

CSS

background-image: linear-gradient(90deg, #2563eb 0%, #5d5ced 10%, #8156e8 20%, #9e52dd 30%, #b74ecc 40%, #cd4cb6 50%, #df4c9e 60%, #ec5083 70%, #f55866 80%, #fa6446 90%, #f97316 100%);

Smooth blends in Oklch, so the middle stays as clear as the ends. The CSS spells it out as a stop every 10 %, so it looks the same in every browser. The PNG is dithered, so no bands show.

How to use the Gradient Generator

  1. Pick linear, radial or conic, and the angle for linear and conic.
  2. Set the colours and where each stop sits, from 0 to 100 %. Add up to 8 stops.
  3. Leave Blend on Smooth to mix in Oklch, so opposite colours meet in a clear middle, or pick Plain for the browser’s own sRGB mix.
  4. Copy the CSS, or save a PNG at the size you need, up to 8,000 px a side.

Why use this

  • Instant. Results update as you type, with nothing to press.
  • Private. What you type stays on this page; the link you share holds only the numbers.
  • Free, with no sign-up and no watermark.

Questions

Why does the middle of a gradient look grey or muddy?

Browsers mix gradient colours in sRGB by default, which dims the colours halfway between two opposites, like red and blue or yellow and blue. Smooth mixes them in Oklch instead, keeping the middle as bright and saturated as the ends.

Does the Smooth CSS work in every browser?

Yes. Instead of CSS’s newer “in oklch” syntax, the blend is written out as a stop every 10 %, which any browser draws the same way.

Why won’t the PNG show bands?

It is dithered: each 8-bit step is spread over neighbouring pixels in a fine pattern, so wide, gentle gradients stay smooth on screen and in print.