CSS Gradient Generator
Design linear, radial and conic gradients; copy the CSS or download them as SVG and PNG.
The tool could not be loaded. Reload the page; if the problem persists, update your browser.
No more grey dead zone
Browsers mix colors in sRGB, so the middle of a blue-to-yellow gradient falls into a muddy grey. The smooth blend option adds in-between colors computed in the perceptual OKLab space; the blend stays vivid and the code works in every browser.
Three gradient types
A linear gradient runs along an angle, a radial one spreads out from a center and a conic one sweeps around a center. Center and shape are adjustable, with up to ten color stops.
CSS, SVG and PNG
The CSS output comes with a fallback background color. SVG output is available for linear and radial gradients; PNG renders every type, conic included, at 1600×900 pixels.
All ColorLab tools
- Quick startPick a color and see its formats, palette, shades and contrast on one screen.
- Color pickerInstant conversion between HEX, RGB, HSL, HSV, OKLCH and CMYK.
- Palette generatorBuild palettes from color harmonies and lock the ones you like.
- Contrast checkerWCAG 2.2 AA/AAA checks with suggested fixes.
- Image colorsFind the dominant colors in a photo and pick colors by clicking.
- Shade scaleEleven shades from 50 to 950 from one color; Tailwind output.
- Color blindnessHow does your palette look with color vision deficiency?
- Theme builderAccessible light and dark themes as CSS variables.
- CSS effectsBox shadow, text shadow and glass effect.
- Palette libraryReady-made palettes; search by tag and save favorites.
- Brand colorsRole colors and a printable color guide.
- ExportCSS, SCSS, JSON, Tailwind, SVG and PNG.