0 uploads

Home / Colour & design

How to use CSS Gradient Generator

  1. Enter two colours. Names such as crimson and HEX codes both work.
  2. Set the angle in degrees.
  3. Watch the preview, then tap Copy and paste the CSS into your stylesheet.

Something not working? Report a problem and it will be looked at.

Related guides

Colour contrast and accessibility: what the ratios meanThe WCAG contrast ratios in plain language, how they are calculated, and quick fixes when your colours fail.2 min read

Frequently asked questions

How do I use it?

Paste the line into any CSS rule.

Are my files uploaded?

No. Everything runs in your browser and your data never leaves your device.

Related tools

HEX to RGB ConverterConvert HEX colour codes to RGB and HSL values.
Colour Contrast CheckerCheck text and background colours against WCAG AA and AAA contrast requirements.
Image CompressorShrink JPG, PNG and WebP images to a size you type in, such as 200 KB, or by quality. Batch supported.
Image ResizerResize images to an exact width while keeping the aspect ratio. Batch supported.