CSS gradient generator
Build linear, radial and conic gradients, then copy the CSS or save a PNG.
background: linear-gradient(120deg, #F2C14E 0%, #F78154 50%, #B4436C 100%);How to use it
- Choose linear, radial or conic, or start from one of the presets.
- Set each color and its position, and adjust the angle.
- Copy the CSS, or download a PNG to use in other design apps.
Avoiding muddy gradients
Two opposite hues can pass through gray in the middle. To avoid that, add a third color between them that keeps its saturation, such as an orange between yellow and pink.
Keeping text readable
Check text against both the lightest and darkest parts of the gradient, not just the middle. If one end fails, darken the gradient or place the text on the end that passes.
Common questions
Do CSS gradients work in every browser?
Linear, radial and conic gradients work in all current major browsers.
Are gradients better than background images?
For simple color blends, yes. CSS adds almost no file size and stays sharp at any screen size.
Why does my gradient show bands?
Banding appears when a subtle blend stretches over a large area. Increasing the color difference or adding fine noise usually hides it.
Related guides
- A practical guide to CSS gradients
How linear, radial and conic gradients work, with tips for smooth colors and readable text.
More free tools
- QR code generator
Create a custom QR code with your colors, shapes and logo, then test that it scans.
- Background remover
Remove the background from a photo right in your browser, then save a PNG.
- Image enhancer
Upscale small photos with AI and fix brightness, sharpness and color.