Build CSS gradients in your browser
This free CSS gradient generator lets you design linear, radial, and conicgradients with a live preview. Adjust the angle, add or remove color stops, drag each stop's position, and pick the interpolation color space (sRGB or the smoother OKLCH / OKLab) — then copy production-ready CSS.
Beyond the standard background declaration, it exports a native Tailwind CSS v4 @theme block so you can reference the gradient as a design token. Everything runs locally in your browser — your gradient is encoded into the page URL so you can bookmark or share the exact result, and nothing is sent to a server.
Frequently Asked Questions
About the CSS Gradient Generator.
From the blog
Improving Core Web Vitals: Replacing Background Images with CSS Gradients
Decorative background images cause late-discovery network bottlenecks. Learn how replacing them with native CSS gradients reduces LCP delays to zero.
Read →tailwindThe Complete Guide to Tailwind CSS v4 Gradients
Tailwind CSS v4 introduces semantic upgrades to gradient classes and native OKLCH support. Learn how to use bg-linear and CSS-first theme configurations.
Read →cssThe Physics of Muddy Gradients: Bypassing the sRGB 'Dead Zone' with OKLCH
Learn why linear interpolation across sRGB color coordinates produces muddy gray gradients, and how perceptually uniform spaces like OKLCH fix it.
Read →