Rates TodayNIFTY25,698.9+0.20%SENSEX83,796.9+0.52%Gold 24K ₹12,037.23/g down2.69Silver ₹147.02/g down0.03
InsightforGeeks

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.

0%
100%
background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);

How to use it

  1. Choose linear or radial.
  2. Pick colours and drag their positions.
  3. Set the angle for a linear gradient.
  4. 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

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.