1. Home
  2. Design tools
  3. Gradient Generator

Gradient Generator

Create gradients for backgrounds, buttons and wallpapers, with modern color interpolation that avoids muddy midpoints.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Gradient Generator

  1. Choose the type and angle.
  2. Add and move color stops.
  3. Copy the CSS or download an image.

Features

  • Linear, radial and conic
  • Unlimited stops
  • sRGB or OKLCH interpolation
  • PNG download up to 8,000 × 8,000 px

Supported formats

You get

  • CSS
  • PNG

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Gradient Generator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Guide

Designing CSS gradients that look smooth, not muddy

Gradients add depth to hero sections, buttons, cards and backgrounds without loading an image. CSS can draw them natively, but writing the syntax by hand and guessing at angles and stops is tedious. This generator lets you design a gradient visually and copy clean CSS, or download it as a PNG for slides, social posts and wallpapers.

Making a gradient

  1. Choose a type: Linear, Radial or Conic.
  2. Set the angle for linear and conic gradients.
  3. Adjust the color stops: each has a color and a position from 0 to 100%. Add color inserts a new stop; the minus button removes one (at least two remain).
  4. Or start from a preset and adjust it.
  5. Click Copy CSS to copy the background: declaration, or set a width and height and download a PNG.

Your last gradient is remembered in this browser.

Choosing a type

Type What it does Good for
Linear Blends along a straight line at an angle Hero sections, buttons, headers
Radial Spreads in a circle from the center Spotlights, soft glows, vignettes
Conic Sweeps around the center like a clock hand Color wheels, pie-like effects, loaders

Angles in CSS: 0deg goes from bottom to top, 90deg left to right, 180deg top to bottom. 135deg, a popular choice, runs from the top-left to the bottom-right.

Smooth, vivid blends

Gradients between very different hues, such as blue to yellow or red to green, often get a muddy gray band in the middle. That happens because browsers blend in the sRGB color space by default.

Turn on Smoother colors (OKLCH) to add in oklch to the CSS. OKLCH is a perceptual color space, so the transition stays bright and even. Current browsers support it; older ones ignore the declaration, so add a plain fallback gradient on the line above.

Another fix is a middle stop: add a third color at 50% that you choose yourself.

Stops and hard edges

  • Spacing stops unevenly controls where the transition happens: stops at 0% and 30% make a quick change near the start, then solid color.
  • Two stops at the same position create a hard edge, useful for stripes, split backgrounds and progress bars.
  • Subtle is usually better: two neighboring hues, or one hue at two lightness levels, look more professional than a rainbow.

Text over gradients

Text has to stay readable across the whole gradient. Check the text color against both ends with the Contrast Checker; the lighter end is usually the problem. A gradient that runs from dark to slightly less dark gives white text room everywhere.

Exporting a PNG

Set a width and height (16 to 8,000 pixels) and download the gradient as an image for presentations, social posts, video thumbnails or phone wallpapers. The PNG uses standard blending, so with OKLCH switched on it can differ slightly from the CSS version in the browser.

Using the CSS

The copied code looks like:

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

Paste it into the rule for your element. To layer a gradient over a photo, list the gradient first: background: linear-gradient(...), url(photo.jpg);, with semi-transparent colors so the photo shows through.

Who designs gradients

  • Web designers create hero sections, buttons and card backgrounds.
  • Social media designers make backgrounds for quotes and announcements, downloaded as PNG.
  • Presenters make slide backgrounds that match a brand.
  • App developers add depth to onboarding screens.

A complete example: a hero background with readable text

  1. Choose Linear at 135°, with two neighboring brand colors, a dark blue and a slightly lighter blue.
  2. Turn on OKLCH for a smooth transition.
  3. Check white heading text against both ends in the Contrast Checker.
  4. Copy the CSS, and add a plain background color on the line before it as a fallback.

Tips

  • Subtle gradients, two close colors, look more professional than rainbows.
  • Download a PNG at your slide or post size for use outside websites.

Checked against the current version of the Gradient Generator on .

Troubleshooting

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why does the middle of my gradient look gray?

Blending two opposite colors, such as blue and yellow, in the standard sRGB space passes through dull gray in the middle. Turn on Smoother colors (OKLCH), which blends in a perceptual color space and keeps the middle vivid, or add a middle stop with a color you choose.

Do OKLCH gradients work in all browsers?

Current versions of Chrome, Edge, Firefox and Safari support "in oklch" in gradients. Older browsers ignore the whole declaration, so add a plain gradient on the line before it as a fallback.

How do I make hard stripes instead of a smooth blend?

Give two stops the same position, for example one color ending at 50% and the next starting at 50%. The color changes abruptly at that point.

Which angle points which way?

In CSS, 0deg runs from bottom to top, 90deg from left to right, 180deg from top to bottom, and 135deg diagonally from the top-left to the bottom-right corner.

Why do some gradients look gray in the middle?

Blending complementary colors in sRGB passes through gray. OKLCH keeps the middle vivid.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.