Gradient Generator
Design linear, radial, conic and mesh-style CSS gradients with OKLCH interpolation. Export CSS, SVG or PNG at any size.
Runs in your browserExports CSS, SVG, PNG
About this tool
- 1Choose linear, radial, conic or mesh.
- 2Add, drag and recolour stops. Adjust angle or centre.
- 3Toggle OKLCH interpolation for smoother, less muddy blends.
- 4Copy CSS or download SVG or PNG.
How it works
Linear, radial and conic gradients map directly to CSS gradient functions. OKLCH interpolation inserts intermediate stops computed in OKLCH so blends between complementary colours avoid the grey dead zone. Mesh gradients are layered radial gradients with large blur, exported as CSS or rasterised to PNG.
Use cases
- Hero and section backgrounds
- Button and card fills
- Social and presentation backgrounds
Questions
What is a mesh gradient?
A soft, multi-point blend. On the web it's approximated by stacking several radial gradients, which is what this tool exports.
Why is my gradient grey in the middle?
sRGB interpolation between opposite hues passes through grey. Turn on OKLCH interpolation to fix it.
What size is the PNG?
You choose: presets from 1080×1080 up to 3840×2160, or custom.
Related tools
- Color Palette GeneratorColor Studio
- Image Color ExtractorColor Studio
- Generative SVG PatternsPattern Lab
- SVG Blob GeneratorSVG Studio
- Halftone GeneratorImage Studio
- All tools in Color Studio
How the algorithms workHow your files are handledUsing what you export