Color Palette & Gradient Generator
Generate color palettes and CSS gradients from a base color.
Build palettes and gradients, locally
Good color schemes come from relationships on the color wheel. Pick a base color and this tool derives a harmonious palette from it: complementary (the opposite hue), analogous (neighbouring hues), triadic (three evenly spaced hues), or monochromatic (one hue at different lightness levels). Each swatch shows its hex code and copies to the clipboard when you click it, so dropping colors into your design or stylesheet is instant. The tool also builds a CSS linear gradient across the palette with an adjustable angle, and gives you the exact `linear-gradient(...)` value to paste into your CSS. All the color math runs in your browser and nothing is uploaded.
Common questions
What do the palette types mean?
Complementary uses the base hue and its opposite (180° away) for high contrast. Analogous uses hues next to the base for a calm, cohesive look. Triadic uses three hues evenly spaced around the wheel for a balanced, vibrant scheme. Monochromatic keeps one hue and varies its lightness, giving a subtle, tonal palette.
How do I copy a color?
Click any swatch and its hex code is copied to your clipboard. The status line confirms which value was copied. The gradient's full CSS value has its own Copy button beneath the preview.
What gradient does it produce?
A CSS linear-gradient across the generated palette, using the angle you set. The tool shows a live preview of the gradient and the exact linear-gradient(...) string you can paste straight into a background or background-image property.
Which color model does it use?
Colors are converted to HSL (hue, saturation, lightness) to compute harmonies, since rotating the hue is how palettes relate on the color wheel, then converted back to hex for display and copying. This is done with standard color math in the browser.
Is anything uploaded?
No. All color conversion and palette generation run in your browser with JavaScript. The colors you choose stay on your device and are never sent to a server — it is fully client-side and private.