Gradient Generator

Design smooth CSS gradients in your browser — linear, radial and conic, with as many color stops as you need. Copy the CSS, grab a Tailwind class, or download a full-size PNG.

Quick answer: set two or more colors, position them, pick a direction, and copy the code. The gradient loaded below is linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%) — in CSS: background: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%);
linear · 90°
Gradient type
deg
Actions
Direction shortcuts
Color stops — drag a marker, or fine-tune below
CSS
Tailwind class
Gradient text
Design in color
Button
Card
Summer saleYour gradient, on a card.
CSS variables

Send this gradient to…

Keep working with these colors and this CSS — the code is copied for you and carried into the next tool, ready to paste or build on.

Your session

Snapshots, pinned gradients and your tools — kept in this tab only, so you can experiment freely and step back. Nothing is uploaded or stored, and everything here disappears when you close the tab.

Gradient history (this tab)

Your snapshots will appear here as you work.

Pinned gradients

Nothing pinned yet — pin a gradient you want to come back to.

Recently used tools

Tools you open from this page will appear here.

Favorite tools

Nothing pinned yet.

Pin a tool

Preset gradients

One click loads a preset into the studio, ready to tweak. All 24 are hand-picked blends that hold up as backgrounds, headers and hero sections.

Gradient ideas for real projects

Six ready-made starting points for common jobs — a hero background, a glowing spotlight, a full color wheel and more. One click loads the whole setup (type, angle and stops) into the studio so you can adjust it.

How to create a CSS gradient

  1. Pick a type. Linear for directional blends, Radial for glows and spotlights, Conic for wheels, charts and ray effects.
  2. Set the colors. Click a stop's color swatch or type a hex value. Add stops for multi-color blends; drag markers or sliders to position them.
  3. Aim it. Use the angle dial, type degrees, or tap a direction shortcut. In CSS, 0deg points up and 90deg points right.
  4. Copy the code. Paste the CSS background into your stylesheet, use the Tailwind arbitrary-value class, or download a 1920×1080 PNG.

The three gradient types, compared

TypeCSS syntaxBest for
Linearlinear-gradient(90deg, red, blue)Page backgrounds, hero sections, buttons, overlays on photos
Radialradial-gradient(circle, red, blue)Spotlight and glow effects, vignettes, sun and light bursts
Conicconic-gradient(red, yellow, green, red)Color wheels, pie charts, starbursts, border and spinner effects

A gradient needs at least two colors. Each color can carry a stop position (0%–100%) that controls exactly where it sits: stops packed close together make a sharp edge, stops spread apart make a soft blend. Leaving positions off entirely spaces the colors evenly — the generator writes explicit positions so what you see is exactly what ships.

Tips for gradients that look good

Blend through a shared hue

Colors that share a hue family — or pass through a related mid-tone — blend smoothly. Jumping straight between opposites (pure red to pure green) passes through muddy gray-brown in the middle; adding a midpoint stop in a bridging color fixes it.

Keep text readable

White text needs the darker end of the gradient behind it. Check both ends: if either stop is light, darken it or add a subtle dark overlay where the text sits.

Match the direction to the light

For a natural, sunlit feel, run the lighter color toward the top (angle around 0–45deg) and the darker color downward, the way real light falls.

Frequently asked questions

How do I make a CSS gradient?

Pick a type (linear, radial or conic), choose at least two colors, set their positions and the direction, then copy the generated background CSS. The default gradient on this page is background: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%); — a warm sunset blend running left to right.

What is the difference between linear, radial and conic gradients?

A linear gradient blends colors along a straight line at an angle you choose. A radial gradient spreads outward from a center point in a circle or ellipse. A conic gradient sweeps colors around a center point like slices of a pie chart, which makes it ideal for color wheels and pie-style charts.

How many color stops can a gradient have?

CSS does not set a practical limit — a gradient needs a minimum of two colors and can have as many stops as you like. This generator lets you add unlimited stops, position each one from 0% to 100%, and remove any stop as long as two remain.

Can I download my gradient as an image?

Yes. The Download PNG button renders your exact gradient — type, angle, colors and stop positions — to a 1920×1080 PNG you can use as a wallpaper, presentation background or social media backdrop.

How do I use a gradient in Tailwind CSS?

Use the Copy Tailwind button. It copies an arbitrary-value background utility such as bg-[linear-gradient(90deg,#ff7e5f_0%,#feb47b_100%)] that you can paste straight into a class attribute in Tailwind v3 or v4 projects.

Is this gradient generator free? Is my work uploaded anywhere?

Yes, it is completely free with no sign-up, and everything runs in your browser. Your colors and gradients are never sent to a server — the CSS, Tailwind class and PNG are all generated locally on your device.

Can I save gradients and come back to them while I work?

Yes — the Your session panel under the studio keeps snapshots of the gradients you make in this tab, with undo and redo, and you can pin favorites to return to with one click. It is deliberately tab-only: nothing is uploaded or stored, so pinned gradients disappear when you close the tab. To keep a gradient permanently, copy the CSS or download the PNG.

How do I build a full color palette from my gradient?

Use the “Send this gradient to…” bar and choose Color Palette Generator — your gradient's CSS is copied and carried over, so you can pull its colors into a palette, check combinations, and export swatches that match the gradient exactly.

What to do with your gradient next

  1. Build the matching palette. Send the gradient to the Color Palette Generator to expand its colors into a full scheme for text, buttons and accents.
  2. Ship it in code. Paste the CSS or Tailwind class into your project, or define the CSS variables export as design tokens so the whole site shares one gradient.
  3. Use it off-screen. Download the 1920×1080 PNG for slides, social posts and wallpapers — or encode the CSS with the Base64 Encoder/Decoder when a tool asks for encoded text.
  4. Keep experimenting. Pin the version you like in Your session, then try the Random button — undo brings the pinned direction back in one click.

More free tools

Gradient Generator is one of 33 free utilities in the suite. Pair it with the Color Palette Generator to find colors that work together first.

Text Tools

Generators

Encoding & Conversion