GPU-friendly paint
CSS gradients are vector math—no image fetch, tiny payload, and they offload to the GPU for smooth paints and animations.
/* CSS will appear here */
Tips: Evenly space stops (0%, 50%, 100%) for smooth blends. Try analogous colors for subtle UIs or complementary for punch. Press Ctrl/Cmd + C to copy CSS.
This generator runs entirely in your browser using the Canvas/CSS stack—no uploads, no tracking. Choose a gradient type (linear or radial), adjust angle or shape, then add as many color stops as you like. The preview updates in real-time and the exact CSS is produced below for easy copy-paste.
CSS gradients are vector math—no image fetch, tiny payload, and they offload to the GPU for smooth paints and animations.
In CSS, 0° points “up” and increases clockwise, so 90° is left→right. That’s flipped from classic math graphs.
LCH/Lab interpolation makes pastels stay pastel between stops. sRGB can gray-out on long blends—try color-mix() to compare.
repeating-linear-gradient and friends loop your stops endlessly—perfect for barcodes, lined paper, or hatched backgrounds.
Multiple gradients on one element layer like Photoshop. Add noise, light falloff, and a vignette—all in a single background-image.