CSS Gradient Generator
About this generator
Build production-ready CSS gradients visually — linear, radial, and conic — adjust stops, angles, and colors with a live preview, then copy the output. Every gradient is rendered with native CSS, so what you preview is exactly what ships: no image assets, no requests, no resolution limits, no DPI banding on Retina displays.
CSS gradients scale to any size, animate cheaply via background-position, and re-theme in a single CSS custom property update — which makes them ideal for dark-mode swaps, brand recolors, and hero sections that need to feel custom without a designer round-trip. Add alpha (rgba, hsla, or #rrggbbaa) to color stops for glass overlays, fade effects, and subtle tints over photography.
Permalink: every adjustment you make is automatically encoded into the URL hash, so you can bookmark a tuned gradient or send it to a teammate with a single share link.
How to use
Syntax parameters
| Parameter | Applies to | Description |
|---|---|---|
angle | linear, conic | Direction of the gradient — e.g. 135deg, to right, to bottom left. |
shape | radial | ellipse (default) or circle. |
position | radial | Center point — e.g. at center, at top right. |
color stop | all | A color followed by an optional position — e.g. #7c3aed 0%, #06b6d4 100%. Accepts any CSS color form including alpha: rgba(124,58,237,0.6), hsla(265,80%,55%,0.4), or #7c3aed99. |
alpha | all | Stops with transparency unlock glass effects, fade overlays, and tints over images. The generator emits the format you pick in the color picker; output supports rgba / hsla / hex8. |
hint | all | A bare percentage between stops that shifts the midpoint of the transition. |
repeating-* | linear, radial | Pick "Repeating linear" or "Repeating radial" in the Gradient Type row to tile the gradient outward. The stops' final position % defines one band of the repeat — set it low (e.g. 20%) for tight stripes, high (e.g. 80%) for wide bands. |
CSS syntax examples
background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
background: radial-gradient(ellipse at center, #7c3aed 0%, #0a0a0a 70%);
background: conic-gradient(from 90deg, #7c3aed, #ff6c8a, #06b6d4, #7c3aed);
background: linear-gradient( 135deg, #7c3aed 0%, #a855f7 40%, #06b6d4 100% );
Pro tips
Gradient types
background: linear-gradient(135deg, #7c3aed, #06b6d4);
background: radial-gradient(circle at center, #7c3aed, #0a0a0a);
background: conic-gradient(from 0deg, #7c3aed, #06b6d4, #7c3aed);
Browser support
linear-gradient() and radial-gradient() are supported in all modern browsers.
conic-gradient() requires slightly newer versions — check the table below.
| Browser | linear-gradient | radial-gradient | conic-gradient |
|---|---|---|---|
| Chrome | v26+ | v26+ | v69+ |
| Firefox | v16+ | v16+ | v83+ |
| Safari | v7+ | v7+ | v12.1+ |
| Edge | v12+ | v12+ | v79+ |
See it used in real designs
Browse hand-coded collections that put this tool to work.