CSS Gradient Generator

Design linear or radial CSS gradients with two or three colours and copy the code.

InstantPrivate — runs in your browserFree, no sign-up

Your details

Gradient type
Third colour
°
0360

Result

How to use

  1. 1

    Choose linear or radial and pick two or three colours.

  2. 2

    Drag the angle slider for linear gradients, or tap a preset.

  3. 3

    Copy the CSS and paste it into your stylesheet.

Questions

How do I use the CSS?

Paste the copied lines into any CSS rule, for example a button, header or section. The first line is a solid fallback colour for very old browsers.

What does the angle mean?

0° goes from bottom to top, 90° from left to right, 180° from top to bottom. 135° runs diagonally from the top-left corner.

About this Gradient Generator tool

CSS Gradient Generator — Design linear or radial CSS gradients with two or three colours and copy the code. It is one of 200 free tools on namasivayam.in, made by software engineer Namasivayam Vadivelan for everyday use in India.

Everything is calculated instantly in your browser: nothing you type or upload is sent to any server, there is no sign-up, and it works on mobile and desktop. Choose linear or radial and pick two or three colours.

Related reading

Articles that go with this tool

All articles →

Related tools

More colour tools you may like

All 200 tools →

Results are estimates to help you plan. They are not financial, tax or medical advice.