CSS gradient generator.
Build a CSS gradient visually: pick colours, drag stop positions and angles, and copy the CSS with a solid fallback colour.
Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.
Colour stops
How to use it
- Choose linear, radial or conic, or start from a preset.
- Set each colour stop’s colour and position; add up to five stops.
- Adjust the angle (linear and conic) or shape and centre (radial).
- Copy the CSS. It includes a solid background-color fallback.
Questions
Do gradients work in all browsers?
Linear and radial gradients work in every current browser. Conic gradients are supported by all modern browsers too; the solid fallback covers very old ones.
Will text on a gradient be readable?
Check contrast against the lightest and darkest parts of the gradient with our contrast checker. Text over the middle of a strong gradient often fails.
Are gradients better than images?
Usually: a CSS gradient is a few bytes, scales to any size and needs no download.
Read more
Design & contentResponsive design breakpoints: how to choose them (and why content should decide)
How responsive breakpoints work — the viewport meta tag, CSS pixels and pixel ratio, mobile-first media queries, content-driven breakpoints, container queries, fluid type and responsive images.
Design & contentJPEG vs PNG vs WebP vs AVIF vs SVG: choosing web image formats
A practical guide to web image formats — when to use JPEG, PNG, WebP, AVIF, SVG and GIF, how transparency and animation work, and how to serve responsive images.
Related tools
- Design
CSS box-shadow generator
Layer realistic CSS box shadows with offset, blur, spread, colour and inset controls.
Open - Design
Colour palette generator
Turn one brand colour into harmonies and a 50–900 shade scale, then export CSS variables.
Open - Design
Colour converter
Convert any CSS colour between HEX, RGB, HSL, HWB, OKLCH and CMYK.
Open