CSS Gradient Generator
Pick your colours, move the stops and set the angle, and see the gradient update live. Copy the CSS and paste it into your website or app.
background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
How to use it
- Choose linear or radial.
- Pick colours and drag their positions.
- Set the angle for a linear gradient.
- Press Copy CSS and paste it into your stylesheet.
Frequently asked questions
How do I use the CSS?
Paste the line into a rule, for example .hero { background: linear-gradient(...); }. It works in all modern browsers.
What is the difference between linear and radial?
A linear gradient changes colour along a straight line at an angle. A radial one spreads out in a circle from the centre.
How many colours can I use?
From 2 to 5 colour stops. Move each one along the bar to change where it starts.
Can I use a gradient as text colour or border?
Yes, with extra CSS such as background-clip: text or border-image. The gradient value is the same.
Related tools
Color Converter & Contrast Checker
Convert colours between HEX, RGB, HSL, HSV, HWB, CMYK and OKLCH, check WCAG contrast and make tints and shades.
Color Picker from Image – Get HEX and RGB Colours from a Picture (Free)
Click any pixel of a picture to get its HEX, RGB and HSL colour, and see the picture's main colours as a palette.
CSS Formatter & Minifier
Beautify CSS with consistent indentation, or minify it to reduce size. Reports CSS syntax problems. Runs in your browser.
Cron Expression Generator
Build and understand cron schedules: plain-English meaning, the next run times and a ready crontab line.
These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.