CSS Gradient Generator
Design linear and radial gradients visually.
Pick one seed color, choose a harmony rule, and get a five-color palette you can use immediately — every click instantly refreshes the CSS custom properties.
Type a hex value for a precise seed
Every color carries three numbers: hue (the color itself), saturation (how intense), and lightness. This tool reads your hex, converts to HSL, and rotates the hue to build the palette.
Complementary is the color 180° away. Analogous steps 30° in either direction. Triadic takes every 120°. Shades and monochromatic instead walk up and down lightness only.
The output panel is valid CSS custom properties — paste the whole thing into a :root rule, then use var(--c1) through var(--c5) anywhere.
A fixed mathematical relationship between hues. Complementary = 180° apart, analogous = close neighbors, triadic = evenly spaced thirds. They are the classic starting rules of color design.
Click any swatch in the preview — it copies that hex value (uppercase) to your clipboard. To grab the whole scheme, use Copy CSS for the custom-property block.
Analogous shades walk both directions around the wheel. Because hue is circular, a palette can wrap past 360° — that is expected and correct for how the wheel works.