ColorToolkits
CSS & Gradients

CSS Gradient Generator

Design smooth linear, radial, and conic gradients with modern color interpolation, compare against standard sRGB side-by-side, and export CSS, Tailwind, SVG, or PNG.

Interpolation Color Space
135°
Color Stops (2/6)
0%
100%
Live Gradient Canvas (OKLCH)
OKLCH Interpolation
Legacy sRGB (Gray Midpoint)
Generated CSS Output (@supports Safe Fallback)
.gradient-surface {
  background: linear-gradient(135deg, #f43f5e 0%, #3b82f6 100%);
}

@supports (background: linear-gradient(in oklch, black, white)) {
  .gradient-surface {
    background: linear-gradient(135deg in oklch, #f43f5e 0%, #3b82f6 100%);
  }
}

How to Use This Tool

  1. Choose Linear, Radial, or Conic geometry and drag or click the color-stop track to add, reposition, or recolor stops.
  2. Toggle OKLCH, OKLab, HSL, or sRGB interpolation and enable Side-by-Side Compare to verify smoother chroma midpoints.
  3. Copy progressive CSS (with sRGB fallback) or download the gradient directly as SVG or high-resolution PNG.

Key Features

  • Side-by-side interpolation compare: inspect perceptual OKLCH / OKLab transitions right beside legacy sRGB gradients
  • Linear (rotatable dial + angle slider), Radial (circle/ellipse), and Conic gradient modes with multi-stop opacity & position controls
  • Exports modern CSS with automatic @supports (background: linear-gradient(in oklch, black, white)) progressive enhancement
  • Export gradient as arbitrary Tailwind utility, clean SVG vector, high-DPI PNG image, or compressed #s= share link

Frequently Asked Questions

More Color Tools

View all tools →