About CSS Gradient Generator
Design linear, radial and conic CSS gradients visually. Add as many colour stops as you like, set their positions and angle, preview the result live and copy ready-to-use CSS (and Tailwind) code. It saves guesswork when building backgrounds, buttons and hero sections.
How to use CSS Gradient Generator
- Pick a gradient type and angle.
- Add colour stops and adjust their colours and positions.
- Check the live preview on a light, dark or checkered backdrop.
- Copy the CSS or Tailwind code.
Tips and good to know
- Place two stops at the same position for a hard edge instead of a blend.
- Check text contrast on top of your gradient — a gradient can pass contrast in one area and fail in another.
Gradients that look good
Gradients between two very different colours can turn muddy grey in the middle, because the browser blends in sRGB by default. Choosing colours close on the colour wheel, adding a middle stop, or using a newer colour space (linear-gradient(in oklch, …)) keeps them vivid. Gradients are generated by the browser, so they stay sharp at any size and load faster than an image. Check text contrast at the lightest and darkest point.
Linear, radial and conic gradients
A linear gradient blends colours along a straight line at an angle, a radial gradient spreads outwards from a point in a circle or ellipse, and a conic gradient sweeps colours around a centre point like the hands of a clock — useful for pie charts and colour wheels. All three can repeat with repeating-linear-gradient and similar functions to make stripes.
Blending two very different colours can pass through a dull grey middle. Adding a third stop in between, or blending in a modern colour space with “in oklch”, keeps the middle bright.
Frequently asked questions
Is the CSS compatible with all browsers?
Standard linear-gradient, radial-gradient and conic-gradient work in all current browsers. The tool also outputs a plain background colour as a fallback.
Is CSS Gradient Generator free?
Yes. CSS Gradient Generator is free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?
No. This tool runs in your browser, so your input stays on your device.