Color Palette Generator
Pick a base colour and a harmony rule to get a palette, plus a tint-and-shade scale for each colour. Every swatch shows its contrast on white and black, and you can export the palette as CSS variables or JSON.
CSS variables
How to use this tool
- Pick or type a base colour.
- Choose a harmony.
- Click a swatch to copy its HEX, or export the palette.
How it works
Harmonies rotate the hue on the HSL colour wheel: complementary +180°, analogous ±30°, triadic +120° and +240°, split-complementary +150° and +210°, tetradic +90°, +180° and +270°. Tint and shade scales change lightness in even steps. Contrast follows WCAG 2.2.
Limitations
- HSL hue rotation is a simple model; colours of equal HSL lightness can look differently bright.
Privacy and data
Everything happens in your browser. Nothing you enter is sent to our server.