Free Online CSS Gradient Generator
Pick up to 6 colours, set each one's position and opacity, preview the gradient and copy the CSS.
How to use the CSS Gradient Generator?
Choose Gradient Type
Select Linear or Radial gradient patterns.
Add Color Stops
Add up to 6 colours, then adjust each one's position and opacity. Lower opacity gives a fade to transparent.
Copy the Code
Copy the background CSS and paste it into your stylesheet.
Why Use Multiple Color Stops?
More colour stops let you build multi-colour blends and fades to transparent.
Key Features
- Linear (angle) and radial (position) gradients
- Up to 6 colour stops with position and opacity
- Five colour presets to start from
- Live preview and copyable CSS
Frequently Asked Questions
Are CSS gradients performance intensive on mobile devices?
Usually not. A CSS gradient is drawn by the browser, so it needs no image download, which can help page load times. Very large gradient areas or many stacked gradients can still be slow on weak devices.
Can I use CSS gradients on buttons and background UI cards?
Yes. You can apply the generated background property to buttons, hero containers, badges and cards.