Home › Developer Tools

Color Palette Generator

For websites and slides, one main color, one or two secondary colors and one accent color keep things clean.

Files are processed in your browser and never uploaded

Colors that go together, easily

Slides, blogs, menus and banners look messy when colors are picked at random. This tool builds palettes from one base color using color-wheel harmonies, or pulls the main colors out of a photo you like. Click a swatch to copy its HEX code, copy ready-to-use CSS variables, or download the palette as an image.

Harmonies

Colors from a photo

Upload a travel photo, product shot or artwork. It's scaled down and similar colors are clustered (k-means) to find the dominant ones, shown from most to least common. Choose 5–8 colors. It's a quick way to carry a photo's mood into a design. Photos are analyzed on your device only.

Use the main color widely, secondary colors sparingly and the accent only where it counts (buttons, headings). Check text/background contrast with the Color Code Converter. The CSS variables are named primary, secondary, accent and so on, ready to paste into a stylesheet; the PNG is handy for sharing with designers or printers.

Frequently asked questions

Colors differ slightly from other tools.

Color-wheel math (HSL) and lightness adjustments vary between tools, so small differences are normal.

What order are photo colors in?

By the area they cover in the photo, largest first.

Can I save a palette?

Copy the CSS or download the PNG.

Related tools