CSS Gradient Generator

Build linear, radial, and conic CSS gradients visually with multi-stop support.

Presets:
0deg90deg180deg270deg360deg
Color Stops
Stop 1
0%
Stop 2
100%
Generated CSS
background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
Tailwind class
bg-[linear-gradient(135deg,#6366f1_0%,#ec4899_100%)]

About This Tool

How to Use
  1. Pick a preset or press Random to start, or select a gradient type: linear, radial or conic
  2. For linear and conic gradients, adjust the angle slider
  3. Change each stop with the color picker or paste a hex value into the text field
  4. Drag the position sliders to move stops along the gradient, and click Add Stop for more
  5. Copy the generated CSS, or the Tailwind arbitrary-value class
Common Use Cases
  • Creating gradient backgrounds for web page sections
  • Generating button hover effects and UI highlights
  • Designing hero section backgrounds without image files
  • Building CSS-only decorative elements
Tips & Tricks
  • Use radial gradients for spotlight or vignette effects
  • Conic gradients are great for pie charts and color wheels
  • Add a stop at 0% and 100% to control the full range precisely
  • The copied CSS works directly in any style attribute or stylesheet

Related Tools