CSS Gradient Generator

CSS Gradient Generator — build linear, radial, or conic gradients with a live preview. Adjust angle, stops, position. Copy as CSS or Tailwind. Free, no signup.

Gradient type
90°
Colour stops
Preview
CSS

About CSS Gradient Generator

Frequently asked questions

A CSS gradient is a smooth, code-defined blend between two or more colours used as a background. Unlike an image (a PNG, JPG, or SVG), a gradient has no file — it's a few characters of CSS that the browser renders directly. That means zero network requests, infinite scaling without blur, instant edits when you tweak a colour, and no concerns about device pixel ratio. Gradients are also GPU-accelerated, so they animate and scroll without affecting performance. They're the modern, performant alternative to baking soft colour transitions into bitmap images.

Three shapes for three feels. **Linear** runs colours along a straight axis at the angle you choose (`linear-gradient(90deg, A, B)` blends left to right) — the workhorse for hero backgrounds, buttons, and tonal surfaces. **Radial** fans colours outward from a centre point in a circle or ellipse — great for spotlights, glows behind logos, and vignettes. **Conic** sweeps colours around a centre point like a pie chart or colour wheel — useful for circular charts, dial UI, gauges, and stylised effects without resorting to SVG.

Click **Add colour stop** below the stops list to insert another stop. This tool supports up to six stops (two minimum, six maximum), which covers nearly every design use case. Each stop has a colour and a position from 0% to 100% — type a hex into the input, drag the position field, or click the colour swatch to open the native colour picker. Stops blend smoothly between their positions, so two stops at 30% and 70% produce a sharper transition than stops pinned to 0% and 100%.

Yes — click **Copy Tailwind** and you'll get a best-effort Tailwind class on your clipboard. For two- or three-stop linear gradients on canonical angles (0°, 45°, 90°, 135°, 180°, 225°, 270°, 315°), you get the friendly utility form: `bg-gradient-to-r from-[#4F46E5] to-[#EC4899]`. For radial, conic, off-axis angles, or four-plus stops — which Tailwind's built-in utilities don't support — you'll get an arbitrary-value class like `bg-[linear-gradient(...)]` with underscores replacing spaces, which Tailwind requires inside `[]` brackets.