Skip to main content

CSS Gradient Generator – Linear, Radial & Conic

Design linear, radial and conic CSS gradients with up to 8 color stops, transparency and OKLCH or OKLab blending. Copy CSS, a CSS variable or Tailwind.

CSS Gradient Generator

Linear, radial and conic gradients with modern color blending.

Start with a preset

Or build your own below.

Preview

Generated code

Copy and paste directly into your project.

CSS
.gradient {
  background: linear-gradient(145deg, #0F766E 0%, #0C1B2A 100%);
}

What is CSS Gradient Generator?

Visual editor for CSS linear, radial and conic gradients. Add up to 8 color stops, drag them or set exact positions, change each stop's opacity, and choose the center of a radial or conic gradient. Pick the color space the browser blends in (sRGB, OKLab, OKLCH or HSL) and the code includes a fallback for older browsers. Copy plain CSS, a CSS custom property with an @supports block, or a Tailwind arbitrary value. Works with touch, mouse and keyboard.

  • css gradient
  • linear gradient
  • radial gradient
  • css background
  • color

Features

What you get with CSS Gradient Generator.

  • Up to 8 Color Stops

    Add, remove and drag stops, or set exact positions and opacity with sliders.

  • Linear, Radial & Conic Modes

    Switch between gradient types.

  • Modern Color Blending

    Blend in OKLab or OKLCH for smoother, more vivid transitions, with a sRGB fallback included.

  • CSS, Variable & Tailwind

    Copy a rule, a custom property with @supports, or a Tailwind class.

Advertisement

In-feed adResponsive

Frequently asked questions

Common questions about CSS Gradient Generator.

Press Add color, or tap the bar under the preview, to insert up to 8 color points. Drag a handle to move it, or select a color and set its exact position with the slider.

Comments

Share feedback, ask questions, or help others use this tool.

Join the discussion

Sign in to comment, reply, and report inappropriate content.

Advertisement

Mobile banner adResponsive