Processing your request...
Design linear, radial and conic CSS gradients with up to 8 stops and OKLCH blending. Copy CSS or Tailwind classes.
Click the bar to add a stop (up to 8). Drag stops to move them, or use the arrow keys.
OKLab and OKLCH avoid the gray middle you get between opposite colors.
background: linear-gradient(135deg, #4928fd 0%, #ff6ec4 100%);
bg-linear-to-br/srgb from-[#4928fd] to-[#ff6ec4]
bg-[linear-gradient(135deg,#4928fd_0%,#ff6ec4_100%)]
Common patterns you can paste and adapt.
| Preview | CSS | Result |
|---|---|---|
| linear-gradient(90deg, red, blue) | Left to right | |
| linear-gradient(to bottom right, red, blue) | Corner to corner, whatever the box size | |
| linear-gradient(red 0 50%, blue 50% 100%) | Hard edge with no blend (stripes) | |
| radial-gradient(circle at 25% 25%, red, blue) | Circle starting near the top-left | |
| radial-gradient(closest-side, red, blue) | Ellipse that ends at the nearest edge | |
| conic-gradient(from 90deg, red, blue, red) | Sweep around the center, like a color wheel | |
| repeating-linear-gradient(45deg, red 0 10px, blue 10px 20px) | Repeating diagonal stripes | |
| linear-gradient(in oklch 90deg, red, blue) | Brighter blending through vivid colors |
Start from a preset or Random, or set your own colors on the stop bar.
Change the angle, or the center and shape for radial and conic gradients.
Paste the CSS into your stylesheet or the classes into your HTML.
Set the angle, shape and center, and see the result as you change it.
Click the bar to add a stop, drag it into place and set its opacity.
Avoid the muddy gray middle between opposite colors, with a fallback for old browsers.
Copy plain CSS, Tailwind v4 classes or a Tailwind arbitrary value.
Your rating helps us decide what to improve.