CSS Gradient Generator
Linear, radial and conic gradients with preview.
background: #6366f1; background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
How to use
- 1Choose linear, radial or conic.
- 2Pick colours and drag their positions; add up to 6.
- 3Set the angle or start from a preset.
- 4Copy the CSS into your stylesheet.
Frequently asked questions
Why are there two background lines in the CSS?
The first is a solid colour fallback for very old browsers; modern browsers use the gradient line.
Can I use it in Tailwind?
Yes. Paste the gradient into an arbitrary value like bg-[linear-gradient(135deg,#6366f1_0%,#ec4899_100%)].
What is a conic gradient?
Colours rotate around a centre point, like a colour wheel or pie chart.
Do gradients work in all browsers?
Yes. Linear, radial and conic gradients work in all current browsers, including on phones.
You may also need
Box Shadow Generator
Design CSS box shadows visually.
Meta Tag Generator
SEO, Open Graph and Twitter tags with previews.
Robots.txt Generator
Create robots.txt and block AI crawlers.
User Agent Parser
See your browser, OS and device from the user agent.
Password Strength Checker
How strong is your password?
Colour Contrast Checker
Check text colours against WCAG AA and AAA.