How to generate a color palette and export CSS variables
- Set Number of colors and choose a Color scheme.
- For a harmony, enter a Base HEX color, then select Generate palette.
- Use Lock color for each swatch you want to keep and select Generate palette again.
- Choose Copy CSS variables or use Copy color on an individual swatch.
Build a color scheme around an anchor HEX value
Start with a brand color you already use for a logo, button or heading. Enter its HEX value and choose a harmony in the color palette generator and color scheme generator. Analogous colors sit close together on the hue wheel. Complementary schemes pair two opposing hues. A triadic scheme spaces three hues evenly around the wheel, while a monochrome or monochromatic scheme keeps the same hue across different lightness steps. The random palette generator mode is helpful when you are exploring fresh directions without an anchor.
Lock HEX swatches and check text contrast
Keep promising HEX swatches with their lock checkboxes and generate again so only the unlocked positions change. A five-color palette can cover a primary brand color, an accent, a page surface and two supporting borders or states. Use the built-in text contrast readout on each swatch to see how readable a black or white label is against that background before committing to a token scale.
Export CSS variables into your design system
Copy CSS variables to paste a ready-to-use :root block into your stylesheet and rename each property after its role. Use the color converter when you need RGB, HSL or CMYK equivalents, the image color picker to pull a base color from a photo and the contrast checker to test any custom text and background pair against WCAG thresholds.
Apply your swatches to a wordmark in the logo maker.
Frequently asked questions
What is the starting palette?
The page starts with five randomly generated colors. Choose three to eight colors for the next palette.
How do locks work?
A locked swatch stays in the same position when you generate a new palette. Reducing the count drops positions beyond the new count.
What color schemes are available?
Choose random, analogous, complementary, triadic or monochrome. The four harmony modes use the base HEX color.
What does Text contrast measure?
It compares the swatch with the black or white label you see on it. For another pair, check those two colors separately.
Can I copy the whole palette?
Yes. Copy CSS variables creates a :root block with one numbered property per swatch.
Last updated November 12, 2026