🎨 CSS Gradient Generator
Create beautiful linear, radial, and conic CSS gradients with live preview and one-click copy.
Last updated: November 8, 2026 · By the BoltQuickTools team
Build a CSS gradient without guessing the syntax
Gradient syntax is easy to get almost right and awkward to tune by editing numbers and reloading. This page is for front-end work where you want to see the colours while adjusting them, then paste a finished background rule.
Working through the controls
- Choose Linear, Radial or Conic at the top.
- For Linear and Conic, set Angle with the dial, the slider or the number box. For Radial, choose Position (nine options) and Shape (Ellipse or Circle).
- Under Color Stops, change a colour with its swatch and drag its position from 0 to 100%. + Add Color Stop adds another; the x button removes one, down to a minimum of two.
- Or click a swatch under Preset Gradients and adjust from there.
- Take the result from Generated CSS with Copy CSS. Copy as background property currently copies exactly the same text.
Output for the default settings
The page opens on a two-stop linear gradient at 135 degrees:
background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
Pressing + Add Color Stop once places a stop halfway along the last two, in their blended colour. Then switching to Radial with Circle at Top Right gives:
background: -webkit-radial-gradient(top right, circle, #667eea 0%, #6e65c6 50%, #764ba2 100%);
background: radial-gradient(circle at top right, #667eea 0%, #6e65c6 50%, #764ba2 100%);
Conic produces a single line with no prefixed version: background: conic-gradient(from 135deg, #667eea 0%, #6e65c6 50%, #764ba2 100%);
Details that affect the CSS you get
- Stops are written in list order, not position order. If you drag a stop past its neighbour, you can get
#ff0000 60%, #0000ff 20%. Browsers then pull the later stop up to 60%, which makes a hard edge. + Add Color Stop re-sorts the list; dragging does not. - Colours come from the native colour picker, so they are always opaque hex. For transparency, edit the output by hand, for example to an
rgba()value. - The angle is a whole number from 0 to 360. Decimals are cut off and negative numbers become 0.
- The
-webkit-linear-gradientline uses the old prefixed angle convention, where 0 degrees points right rather than up. The same number therefore means a different direction in that line. Current browsers read the standard line that follows it, so this only matters for very old ones, and you can usually delete the prefixed line. - Radial gradients always use the default size. There is no control for
closest-sideor a fixed radius. - Conic gradients always start from the centre. Position only applies to Radial.
- Repeating gradients and colour hints between stops are not available.
Questions about using the result
Why did my angle jump to 0 after using the Candy preset?
Candy is a radial preset stored with an angle of 0. Switching back to Linear keeps that value, so you get linear-gradient(0deg, ...) until you set the angle again.
Can text sit on top of this?
Yes, but the colour behind it changes across the box. Check the lightest and darkest stops separately in the contrast checker; the colour accessibility article explains the thresholds.
Where do I get matching colours?
The stops accept any hex colour through the swatch, so you can pick from the palette generator first and set them one at a time.