/tools/generate-color-palette

Generate Color Palette

Turn a photo, artwork or mood image into a working color palette. Choose a palette size, review the swatches and copy them as CSS custom properties for a website, app or design file.

Private & secure
Upload image or drag & drop
JPG · PNG · WebP

How to use the Generate Color Palette

01
Upload
Drop an image.
02
Click to pick
Click anywhere to grab a colour. A palette is extracted automatically.
03
Copy
Copy HEX, RGB or HSL, or the whole palette as CSS.

From an image to a palette

Start with an image that already has the feel you want: a landscape, an interior, a product shot or a piece of artwork. The generator finds its main colors and lists them by how much of the image they cover. That order is a useful starting point for roles. The first swatch is often a background or large surface and works as a base or neutral, while the smaller ones later in the list make natural accents.

Because the palette comes from real proportions in the picture, it tends to feel balanced when used in similar proportions: lots of the base, a little of the accent.

Turning swatches into a usable UI palette

A palette for a website or app needs roles more than a long list of colors: a background, a surface for cards, a text color, and one or two accents for buttons and links. Pick candidates from the generated swatches, then check text against its background for contrast. The WCAG guideline for normal body text is a contrast ratio of at least 4.5:1.

Click any swatch to see its HSL value. Keeping the hue and saturation while changing the lightness is the simplest way to make tints and shades, such as a lighter hover state or a darker border, that still belong to the same family.

The CSS output

Copy palette as CSS gives you a :root block with one custom property per color, from --color-1 for the most common to the last. Paste it at the top of a stylesheet, rename the variables to roles like --brand or --surface, and refer to them with var(). The same HEX codes paste straight into design apps, presentation themes and configuration files.

Supported formats

JPGPNGWebP

Files up to 25 MB. Large, high-resolution photos are supported.

Privacy

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else. No account needed. How we handle files.

Generate Color Palette FAQ

How many colors should a palette have?

For interface work, a couple of neutrals plus one to three accents is usually enough. Generate 6 or 8 and keep the ones that work together.

Can I generate a palette without an image?

No. This tool builds the palette from the colors in an image you upload.

Why are some of the colors very similar?

The image is dominated by one hue, so several groups fall close together. Try a smaller palette size to merge them.

Can I edit a color in the palette?

Not inside the tool. Copy its HSL value and adjust the lightness or saturation in your stylesheet or design app.

Will the same image always give the same palette?

Yes. The same image and palette size produce the same colors every time.

Are my images safe?

Your file is sent over HTTPS, processed in memory and returned straight away. It is never stored, never shared and never used for anything else.

Is it free?

Yes. No account, no watermark and no limit on how many images you process. Files can be up to 25 MB.

Related tools

See all 6 color tools →