CSS Gradient Generator
Make linear, radial, conic or repeating gradients with as many color stops as you like, pick a ready-made one, and copy the CSS.
How it works
Make linear, radial, conic or repeating gradients with as many stops as you like, start from a ready-made one, choose the colour space to blend in, and copy the CSS.
Good to know
- Blending in OKLCH or OKLab avoids the dull grey band that can appear in the middle of sRGB gradients, like blue to yellow.
- Add a plain sRGB line above the modern one as a fallback for old browsers.
- Hard edges come from two stops at the same position.
Common questions
- What is a repeating gradient?
- One that tiles itself, like stripes. Stops must be close together, like 0% and 10%.
- Do browsers support "in oklch"?
- Current Chrome, Edge, Safari and Firefox do.
- How do I make a text gradient?
- Use background-clip: text with transparent text colour.