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.
.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
- Choose Linear, Radial, or Conic geometry and drag or click the color-stop track to add, reposition, or recolor stops.
- Toggle OKLCH, OKLab, HSL, or sRGB interpolation and enable Side-by-Side Compare to verify smoother chroma midpoints.
- 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
Straight-line interpolation in gamma-encoded sRGB cuts close to the neutral gray axis between complementary colors. Interpolating in OKLCH or OKLab maintains brightness and saturation across the blend.
ColorToolkits generates a two-layer progressive CSS rule: older browsers render the sRGB baseline first, while modern browsers upgrade automatically when OKLCH interpolation is supported.
More Color Tools
View all tools →Color Palette Generator
Press Spacebar to generate balanced palettes, lock favorite swatches, and export anywhere.
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Color Converter
Convert single or bulk colors across HEX, RGB, HSL, OKLCH, P3, CMYK, and mobile formats.