Linear vs radial gradients
A gradient is a smooth blend between two or more colors, rendered natively by CSS – no image required, so it stays razor-sharp and weighs nothing.
- Linear – colors blend along a straight line. The angle sets the direction:
0degis bottom-to-top,90degleft-to-right,135dega diagonal. - Radial – colors blend outward from the centre in circles, useful for spotlights and soft backdrops.
Adding a third color stop creates richer, multi-tone blends. Pick colors that sit near each other on the wheel for a subtle look, or opposite for bold contrast – our color tools can help you choose.
How to use the CSS
Copy the generated rule and apply it as an element's background:
background: linear-gradient(135deg, #3b5bdb, #e64980);
Gradients work on any element that accepts a background, including buttons, cards and hero sections, and are supported by all modern browsers. Everything here is generated locally in your browser.
FAQ
Linear or radial – which should I use?
Linear for directional blends (backgrounds, buttons); radial for spotlight or centre-out effects. The tool lets you switch instantly and preview both.
Do gradients work in all browsers?
Yes – linear-gradient() and radial-gradient() are supported by all current browsers without prefixes.
Is it free?
Completely free, no sign-up, and it runs entirely in your browser.