Color Palette Generator
Choose a base color and a scheme, and the generator returns a five-color palette built from color-wheel relationships. Copy the hex codes as a list, or as CSS custom properties ready to paste into a stylesheet.
#1E90FFexactly dodgerblue
This is the CSS color dodgerblue #1E90FF
Use 3 or 6 digits, for example #1E90FF or 19F
For example rgb(30, 144, 255) or 30 144 255
For example hsl(210, 100%, 56%)
For example cmyk(88%, 44%, 0%, 0%)
Palette
:root {
--color-1: #1E90FF;
--color-2: #7ABDFF;
--color-3: #F47800;
--color-4: #FF8D1E;
--color-5: #0058AD;
}Recent colors
Colors you pick appear here. They stay on this device.
By the Hex Color Picker Team. Updated
How to generate a palette
- Pick your base color with the picker, or type its hex code.
- Choose a scheme: complementary, analogous, triadic or monochromatic.
- Click any swatch to make it the new base color, or copy the whole palette as a hex list or as CSS variables.
The four schemes
- Complementary: your color plus the one directly opposite it on the wheel (180 degrees away), with a lighter and a darker variation. High contrast and good for a call to action against a calm background.
- Analogous: five colors within 60 degrees either side of the base. Neighbors on the wheel sit together naturally, which suits backgrounds and illustrations.
- Triadic: three hues spaced 120 degrees apart, with two tonal variations. Lively and balanced, and easiest to use when one color dominates and the other two are accents.
- Monochromatic: one hue at five lightness levels, from pale to deep. The safest scheme for interface states and charts that use one brand color.
How the palettes are built
The base color is converted to HSL. Hue is rotated by the angles above while saturation stays the same, so related colors feel like they belong together. Lightness is shifted in the variation swatches. Results are rounded to the nearest valid hex code, and every code in the palette is a real, directly usable sRGB color.
Turning a palette into CSS
Copy the CSS variables and paste the block into your stylesheet. Then refer to each color by name wherever you need it, for example color: var(--color-1) for text or background: var(--color-3) for a button. Because every color lives in one place, changing the brand color later means editing a single line instead of searching the whole project for a hex code.
Using a palette in a design
A workable rule of thumb is 60-30-10: about 60% of the surface in the dominant color or a neutral, 30% in a supporting color, and 10% in the accent. Before you commit to a palette for text and buttons, check that the text and background pairs have enough contrast. WCAG asks for at least 4.5:1 for body text and 3:1 for large text.
Common questions
What is a complementary color?
It's the color directly opposite your base color on the color wheel, 180 degrees away in hue. Blue's complement is orange-yellow, and red's is cyan.
Can I copy the palette as CSS?
Yes. The CSS variables button copies the colors as custom properties, for example --color-1: #1E90FF, inside a :root block.