CSS Gradient Generator
Create CSS gradients with preview
135°
Color Stops
#3B82F60%
#8B5CF6100%
CSS Output
background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
About This Tool
The CSS Gradient Generator creates smooth multi-color gradients you can paste directly into your CSS. It supports linear (directional) and radial (circular) gradients with any number of color stops.
A gradient's color stops define where each color starts and ends along the gradient axis. The angle slider rotates linear gradients from 0° to 360°. Use the live preview to fine-tune before copying.
How to Use
- Select Linear or Radial gradient type.
- For linear gradients, drag the angle slider to set the direction.
- Click a color swatch to change it; drag the position slider to move the stop.
- Click + Add Stop to add more color stops. Click ✕ to remove one.
- Click Copy to copy the CSS background declaration to your clipboard.
Use Cases
Web designers create hero section backgrounds with CSS gradients instead of images — smaller file size and infinite resolution. Brand teams generate gradient palettes matching corporate color guidelines. Developers prototype cards, buttons, and overlays with gradient fills.
FAQ
- What is the difference between linear and radial gradients? — A linear gradient transitions colors along a straight line at a given angle. A radial gradient radiates colors outward from a center point.
- Can I use more than two colors? — Yes. Click + Add Stop to add as many color stops as you need. Each stop has its own color and position.
- Is the generated CSS cross-browser compatible? — Yes. The standard linear-gradient() and radial-gradient() functions are fully supported in all modern browsers without vendor prefixes.