# Color palette from multiple images

Drop up to 30 images and get one color palette for the whole set, with hex, oklch, CSS, Tailwind and an AI prompt. Nothing is uploaded.

A free tool that runs in the browser: https://supertaster.me/tools/color-palette-from-images

This tool makes one color palette from multiple images at once, such as every picture on a moodboard, instead of one palette per picture.

## How it works

Each image is shrunk to about a hundred pixels on its long side, which keeps its colors and drops the detail. The colors from every image are pooled and grouped with k-means clustering. Each swatch is the average of one group, and its share is how much of the set that group covers. The same images always give the same palette.

The grouping happens in OKLab, a color space built so that equal distances look about equally different. In plain RGB they don't, so groups split in the wrong places. Hue counts double against lightness, so one surface in light and shadow stays one color. Values are shown as hex and as oklch, OKLab's lightness, chroma and hue form, which CSS reads directly.

## Why weighting matters on a moodboard

A board mixes big hero images with small details, so how they are counted changes the palette.

- **Each image equally** gives every picture one vote, so one loud photo can't take over and a color that recurs across images rises. This is the default, and usually right for a board.
- **By area** counts pixels, so a big, high-resolution image weighs more than a small screenshot. Use it when the biggest image really is the main reference.

Hover, focus or tap a swatch to see which images it came from and how much of each it covers. A color found in five images is a preference; a color found in one belongs to that image. [How to build a color palette from the things you have saved](/blog/color-palette-from-saved-references) explains that test in more detail.

Lock a swatch to keep it while you change the number of colors, the weighting or the images; the rest regroups around it.

## Using the palette

- **In Figma:** copy the hex list into your color styles, or download the palette card and place it next to the board.
- **In CSS:** copy the CSS block. The variables are named `--color-palette-1` and so on, in the order shown. In Tailwind 4, paste the same lines into `@theme` instead of `:root`. For Tailwind 3, copy the Tailwind snippet into `theme.extend`.
- **With an AI:** paste the AI prompt into Claude, ChatGPT or an image model. It lists each color with its share, biggest first, because proportion is much of what makes a palette feel the way it does.

A palette from a board is a starting point. Name the colors by role and check text contrast before you build with them. For the board itself, see [how to make a moodboard that leads to a decision](/blog/how-to-make-a-moodboard), and for client work, [how to build a brand moodboard for a client](/blog/brand-moodboard-for-a-client).

If you keep your references in [Supertaster](/), the archive we make, it pulls a palette from every picture you save. You can search your canvas by a color word or a hex code, and its "more like this" takes color into account.

## Questions

### How do I get one color palette from several images?

Drop, paste or choose all the images in the tool above. It pools their colors into one palette of 3 to 10 colors, with each color's share of the whole set.

### Are my images uploaded?

No. Your browser reads and measures the images on this page, and nothing is sent to a server. Closing the tab clears them.

### What is the difference between weighting by area and by image?

By area counts pixels, so bigger images weigh more. Each image equally gives every picture one vote, so one large photo can't decide the palette.

### Why do some colors look duller than in my photos?

Each swatch is the average of a group of similar colors, and averaging softens the strongest pixels. Ask for more colors to split the groups finer, then lock the ones you want to keep.

### Can I use the palette with Tailwind?

Yes. For Tailwind 3, put the Tailwind snippet inside `theme.extend` in `tailwind.config.js`. For Tailwind 4, paste the CSS variables into `@theme`. Either way you get classes like `bg-palette-1`.
