Home Gradient

CSS gradient

ready

Pick colors, set angle or radial origin, see the gradient live. Copy clean CSS for any framework - Tailwind, vanilla, or whatever you're using.


STDINinput
135°

CSS

[01] How CSS gradients work

A gradient is a series of color stops along a line (linear) or radius (radial). The browser interpolates colors between adjacent stops.

linear-gradient(135deg, #0A0A0A 0%, #0A0A0A 100%)
radial-gradient(circle at center, #0A0A0A 0%, #0A0A0A 100%)

[02] Angle conventions

[03] Tips

[04] Common use cases

[05] Browser support and gotchas

Linear and radial gradients are universally supported across modern browsers. Conic gradients (conic-gradient()) are well-supported in evergreen browsers but may need fallbacks for very old enterprise installs. Color-space syntax (e.g. linear-gradient(in oklch, ...)) is newer; check support before relying on it. The classic gradient gotcha is interpolating between complementary colors (red-to-cyan, blue-to-orange) which produce a muddy gray midpoint in sRGB; specifying in oklch or adding an intermediate stop fixes that.

STDOUToutput

Common questions

Is CSS Gradient Generator free to use?

Yes. The tool runs in your browser at no cost, with no signup required.

Where is the math performed?

Calculations run locally in your browser. Your inputs do not leave your device.

Are the rates and rules current?

We update sources when published rates change. For high-stakes decisions, verify against the official source linked on this page.