Generate a color palette from any color
Start from a brand color or a random one, choose a harmony, and get a palette you can copy as HEX, RGB, HSL or ready-made CSS variables.
Nothing you enter leaves your device. Everything is worked out inside this browser tab. Nothing is sent to a server or logged. Ads on this site are served by Google and may use cookies; they never see your files or what you type. Privacy policy.
Contrast shows which text color reads best on each swatch, with its WCAG ratio (AA needs 4.5:1 for normal text).
01
How it works
-
01
Pick a base color
Use the color picker or type a HEX code such as
#1F4D3A. Or press Random for a starting point. -
02
Choose a harmony
Complementary, analogous, triadic, split-complementary, tetradic or monochromatic. The palette updates as you go.
-
03
Copy or export
Copy any swatch in the format you need, or copy the whole palette as CSS custom properties.
02
Questions
What’s the difference between the palette types?
Complementary pairs opposite hues for strong contrast. Analogous uses neighbours for a calm look. Triadic and tetradic space three or four hues evenly. Monochromatic keeps one hue and varies lightness.
What does the contrast label mean?
Each swatch shows whether black or white text is more readable on it and the WCAG contrast ratio. 4.5:1 or more passes for normal text; 3:1 passes for large text.
How do I use the CSS export?
It copies lines like --color-1: #1f4d3a;. Paste them inside :root { } in your stylesheet and use var(--color-1).
Can I share a palette?
Yes. The page address updates with your base color and harmony, so copying the URL shares the same palette.
03
Related tools
Free, private and in the browser, like this one. See all tools
-
Images & color
Image Color Picker
Click any pixel to get its HEX, RGB and HSL code.
Open tool -
Images & color
Image Compressor
Shrink JPG, PNG and WebP images and see the saving first.
Open tool -
Business & money
Email Signature Generator
A clean HTML signature for Gmail, Outlook and Apple Mail.
Open tool