Gradient Generator
Build a linear or radial CSS gradient from two colours and an angle, with CSS and Tailwind output.
Related tools
All Colours & CSS tools →Open Gradient Generator and you get an answer straight away, with no account to create. Its place is under Colours & CSS; Color Contrast Checker and Color Inverter answer the questions closest to this one.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What is Gradient Generator?
Build a linear or radial CSS gradient from two colours and an angle, with CSS and Tailwind output.
When would I actually use this?
Moving a colour between a design tool and a stylesheet, building a palette around one brand colour, and checking text will be readable on it.
What is the most common mistake?
Judging contrast by eye. Two colours that look distinct on a bright monitor can fail the accessibility ratio outright, and the ratio is the thing an audit will measure.
Is there a tool for the next step?
Color Inverter is the closest one after this: Invert a colour (255 − RGB) or take its complement, in HEX/RGB/HSL/CMYK with the contrast between them.
What else is worth having open alongside it?
Color Scheme Generator and CSS Compressor — they come up in the same task often enough to be worth a second tab.
Where do the figures come from?
Conversions between HEX, RGB and HSL are exact. Contrast follows the WCAG 2 relative-luminance formula; CMYK is device-dependent, so a screen value is an approximation of what will print.