Skip to content
Jellykit

CSS Gradient Generator

Design linear, radial and conic gradients visually and copy the CSS, with smooth OKLCH blending and a fallback for older browsers.

  • Runs on your device
Loading tool

About CSS Gradient Generator

Build a gradient by eye and take the CSS with you. Choose linear, radial or conic, set two or three colors, and adjust the angle and the position of the middle stop while the preview updates.

Blending in OKLCH avoids the muddy grey band that often appears halfway between two saturated colors. A plain fallback line is included for older browsers.

How it works

  1. Your choices are assembled into a standard CSS gradient function and applied to the preview as its background.
  2. When a blending space other than sRGB is chosen, the CSS uses the "in oklch" or "in hsl" interpolation syntax from CSS Color Level 4.
  3. The settings are stored in the page address, so a gradient can be bookmarked or sent to someone as a link.

Questions

Why does my gradient look grey in the middle?

Mixing two vivid colors in sRGB passes through a duller midpoint. Switch blending to OKLCH and the transition keeps its saturation all the way across.

Do all browsers support "in oklch" gradients?

Current versions of Chrome, Edge, Safari and Firefox do. The generated CSS puts a classic gradient first as a fallback, so older browsers still show something close.

Can I use the result in Tailwind or a design tool?

Yes. Paste the gradient value into an arbitrary value such as bg-[...] in Tailwind, or into any design tool that accepts CSS backgrounds.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.