Gradient generator
Create beautiful gradients and export them as CSS, Tailwind or an image in any size.
Gradient
Click the bar to add a stop. Drag a stop to move it, or pull it down to remove it.
Tap the bar to add a stop. Drag a stop to move it.
Hex, rgb(), hsl(), oklch() or a CSS color name.
Keeps the colors between stops bright.
Free and open source
Put your gradient behindpages, ads and slides.
Agent-Native Design builds each one on your gradient, with text that stays readable on top.
Gradient backgrounds to start from
What is a gradient?
A color gradient is a smooth blend from one color into others. On a web page, CSS draws it, so it stays sharp at any size and adds nothing to download. As an image, it works everywhere else: slides, video edits, phone wallpapers and social posts.
In CSS, a gradient is a background image. Give it a direction and two or more colors:
Linear, radial and conic gradients
Linear
A linear gradient runs in a straight line at an angle. The usual choice for backgrounds and buttons.
Radial
A radial gradient spreads out from the center, like a glow or a spotlight.
Conic
Sweeps around the center like a clock hand. Good for color wheels and pie charts.
Color stops
Each stop is a color at a position. Move stops closer together for a sharper change.
Grain
A fine noise over the colors. It adds texture and hides the bands a smooth gradient shows in a big image.
Why blend in OKLCH?
Browsers blend gradients in sRGB unless told otherwise. They draw a straight line between the two color codes, and between hues far apart that line passes close to gray. Blue into yellow turns muddy in the middle.
OKLCH blends by lightness, chroma and hue, the way people see color. The middle stays as bright as the ends. This tool writes the OKLCH result as plain color stops, so the code works in every browser.
How to make a gradient
Add your colors
Click the bar under the preview to add a stop, then set its color.
Set the shape
Choose linear, radial or conic, and turn the angle.
Pick a blend
OKLCH keeps the middle bright. sRGB matches older tools.
Copy or download
Take the CSS or Tailwind, or save a PNG, JPG or SVG at the size you need.
Need colors that go together first? Try the color palette generator.
More free color tools
FAQs
Gradient generator questions
A background that blends smoothly from one color into one or more others. It can run in a straight line (linear), spread out from the center (radial) or sweep around a point (conic).
Use linear-gradient() in the background property. It takes a direction and two or more colors: background: linear-gradient(135deg, #E2649A, #F7B267). The gradient generator writes this code for you.
One with two or three colors close in lightness, so text on top stays readable. Dark gradients suit white text, and light pastel gradients suit dark text.
Yes. Click the download icon above the preview and pick 4K (3840 × 2160). You can also pick a wallpaper or social media size, or enter your own up to 8000 pixels a side.
Browsers blend colors in sRGB by default, and two hues far apart, like blue and yellow, pass through gray on the way. Switch the blend to OKLCH and the middle stays bright.
Use a bg-linear utility with from-, via- and to- colors, such as bg-linear-135 from-[#E2649A] to-[#F7B267] in Tailwind v4. The Tailwind tabs above give you the classes for your gradient.
Yes. Use them in personal and commercial projects. No sign-up and no credit needed.