Skip to main contentAgent-Native Hackathon winners revealed live Nov 13.RSVP
CONTACT SALESSTART BUILDING

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.

background: linear-gradient(135deg, #7C3AED 0%, #9F3ADF 25%, #BD3CCB 50%, #D740B3 75%, #EC4899 100%);
Color stop 1/2

Hex, rgb(), hsl(), oklch() or a CSS color name.

Angle
Blend

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.

TRY AGENT-NATIVE DESIGN

Gradient backgrounds to start from

Rose duskRose into warm peach. Soft enough for dark text.Deep oceanNavy into teal. Made for white text.LagoonTeal into bright blue, fresh and clean.Grape sodaViolet into pink, loud in a good way.CitrusYellow into orange, all energy.MidnightNear-black into indigo, for dark heroes.Cotton candyPink into periwinkle, pastel and light.EmberAmber glowing out of dark red, from the center.

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:

.hero { background: linear-gradient(135deg, #E2649A 0%, #F7B267 100%); min-height: 60vh; }

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.

sRGB: grayish in the middle
OKLCH: bright all the way across

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

Color palette generatorCreate a palette in seconds, or build a light and dark theme from your brand color.Color wheelBuild a palette from any color's harmonies and copy it as CSS or Tailwind.Image color pickerGet the HEX, RGB and HSL code of any color in a photo, plus its main colors as a palette.Random color generatorGenerate random colors with names and hex, RGB or HSL codes, up to 10 at once.Inverted color wheelFind the opposite of any color, invert an image and print a chart.Hex to RGBTurn a hex code into RGB, HSL, OKLCH, CMYK and Tailwind values.

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.