CSS Gradient Generator
Preview a linear or radial gradient and copy the CSS background declaration.
Runs on your device. Nothing you add is uploaded.
°
CSS
background: linear-gradient(135deg, #4A4AC8, #EE6280);
How to use CSS Gradient Generator
- Choose a linear or radial gradient.
- Select the colors and set the angle for a linear gradient.
- Copy the CSS into your stylesheet.
Questions
How is the angle measured?
For a linear gradient, 0° points up and 90° points right. A radial gradient spreads outward from its center.
Where does the middle color appear?
With three evenly spaced color stops, the middle color appears halfway between the start and end stops.
How this works
Builds a native CSS gradient declaration from validated colors and settings.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in Color & designColor Picker
Pick an sRGB color and copy its hex, RGB, or HSL values.
Color Palette Generator
Build a palette of related colors from a base color and a color scheme.
CSS Box Shadow Generator
Preview a CSS box shadow with adjustable offsets, blur, spread, color, and opacity.
RGB to Hex
Convert an opaque RGB color to hex and see the swatch.