CSS Gradient Generator — Linear, Radial, Conic
Design linear, radial, and conic CSS gradients with unlimited color stops. Live preview and copy the CSS. Share via URL.
- 0%
- 100%
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
How to use
- 1Pick a gradient type
Linear (line), radial (ellipse), or conic (sweep around a point).
- 2Set color stops
Start with two colors, click "Add stop" for more. Drag position sliders to control where each color lives.
- 3Adjust angle or shape
Linear + conic take an angle in degrees. Radial takes a shape (circle/ellipse) and a center position.
- 4Copy the CSS
One-line background-image rule ready to paste. Every change is in the URL so you can share the exact gradient.
Examples
Type: linear · Angle: 135deg · Stops: #6366f1 (0%), #8b5cf6 (100%)
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
Type: radial · Shape: circle · Center: 50% 0% · Stops: rgba(99,102,241,0.4) → transparent
background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.4), transparent 70%);
Type: conic · Stops: red → yellow → green → blue → red
background: conic-gradient(from 0deg, red, yellow, green, blue, red);
Frequently asked
A gradient that sweeps around a center point like a color wheel or pie chart. Great for progress rings and hero backgrounds. Modern browsers only.
Yes — click "Add stop" and drag the position sliders. Stops are automatically sorted by position when rendered.
Radial gradients don't use angles — they use shape (circle/ellipse) and position. Angles apply to linear and conic gradients.
Related tools
- Color ConverterPaste any color in hex, rgb(), rgba(), or hsl() and get it in every other format
- Contrast CheckerTest any foreground/background color pair against WCAG 2.2 contrast rules. Shows
- Favicon GeneratorGenerate favicons from any letter, emoji, or short text. Custom gradient backgro
- Color Blindness SimulatorSimulate how your colors look to people with color vision deficiency (CVD). Cove
- Color Harmony GeneratorGenerate a palette from any base color using 7 classic color-theory schemes: com
- CSS Color NamesBrowse all 147 CSS3 named colors. Look up a color name from a hex code, or find