CSS Gradient Generator
Nothing uploaded · runs in your browser · free, no sign-up
OKLCH/OKLab blending needs a current browser; older browsers show the first color.
How it works
Choose the gradient type, set the angle (or the shape for radial gradients) and edit the color stops — each stop has a color and a position from 0 to 100%. Add stops for richer blends, remove the ones you don't need, or press Random for inspiration.
The CSS box shows ready-to-paste code with a solid fallback color first. "Smooth (OKLCH)" uses CSS Color 4 interpolation (linear-gradient(in oklch …)), which avoids the muddy gray middle you often get when blending complementary colors in sRGB; it works in all current browsers, and older ones fall back to the solid color.
"Download PNG" renders the same gradient as an image at 1920×1080, 1080×1080, 1080×1920 or 4K — useful for wallpapers, slide backgrounds and social media posts. The image is drawn in your browser; nothing is uploaded.
FAQ
Why does my gradient look gray in the middle?
Blending two very different hues in sRGB passes through desaturated colors. Switch Blending to "Smooth (OKLCH)" — the hue rotates around the color wheel instead of cutting through gray.
Are my images or colors uploaded anywhere?
No. Every calculation — conversions, contrast, palette extraction — runs in your browser. Images are opened locally and never sent to a server, including ours. Recent colors and your last palette are kept only in this browser's storage.
Which browsers are supported?
All current browsers on computers and phones. Picking a color from anywhere on the screen needs the EyeDropper feature, which only Chrome and Edge on computers have; everything else works everywhere.
Is Plaincolor free?
Yes, free with no sign-up and no limits. The site is supported by ads.