🎨 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

deg

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

  1. Choose Linear, Radial or Conic at the top.
  2. 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).
  3. 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.
  4. Or click a swatch under Preset Gradients and adjust from there.
  5. 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

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.