# How to build a color palette from the things you have saved

Sample several images, count which colors recur and in what role, then turn the recurring ones into named tokens and check contrast before use.

Published 2026-12-02 by Jeffrey Li · https://supertaster.me/blog/color-palette-from-saved-references

Gather the saved images you respond to most, sample the main colors from each, and look for the colors and proportions that repeat across several images. Keep what recurs and drop what appears once. Then name the survivors by role, turn them into tokens, and check contrast before using them. The method below needs only an eyedropper.

This is a method, not a case study. We have not included results from our own images, because a palette pulled from someone else's references tells you nothing about yours.

## How do I pull a palette out of reference images?

Pulling a palette from reference images is a sampling exercise, and it often follows [making a moodboard](/guides/moodboards). Work from at least ten images. A palette from one image is a copy of that image.

1. **Choose the images.** Pick ten to twenty saved references you would still save today. Include some that are not about color at all, such as type or interface references. They show your defaults.
2. **Sample each image.** Use the eyedropper in any design tool, or a system color picker such as Digital Color Meter on a Mac. To sample many images at once, the [color palette from images tool](/tools/color-palette-from-images) combines them into one palette. Take three to five colors per image: the largest area, the main text or foreground color, and any accent.
3. **Record the role and the share.** Next to each sample, write what it was doing and roughly how much of the image it covered. "Background, most of the image." "Accent, one small element."
4. **Lay the samples out by role.** Put all the backgrounds in one row, all the foregrounds in another, all the accents in a third.
5. **Read the rows.** Look for clusters. Are the backgrounds mostly warm off-whites? Are the accents usually one saturated color, used small?

Two things to watch. Photographs contain thousands of colors, so squint or blur the image and sample the broad areas, not single pixels. And screenshots of the same color can differ slightly between devices and file formats. Treat sampled values as approximate and adjust by eye.

## How do I tell a recurring preference from one loud image?

A recurring preference shows up in several unrelated images. A loud image shows up once and dominates your memory.

Use a simple count. For each cluster of similar colors, note how many different images it came from.

- **In five or more of your images:** a preference. Build on it.
- **In two to four:** a candidate. Keep it as a secondary or accent color.
- **In one:** a property of that image. Leave it out, however much you like the image.

The numbers are a rule of thumb for a set of ten to twenty images, not a standard.

Also compare proportions, which matter as much as hues. Many people find that what they actually like is a ratio: mostly neutral, a little dark, and a very small amount of one strong color. If your accents are always small in the references, a palette that uses the accent across large areas will feel wrong even though the hex values are right.

## How do I turn a palette into usable tokens?

A palette becomes usable when each color has a job and a name that describes the job. A row of swatches is not yet a system.

Start small. Most interfaces and documents need:

- one or two backgrounds
- a main text color and a quieter secondary text color
- a border or divider color
- one accent for actions and emphasis

Name them by role, not by appearance. A role name still makes sense when you later adjust the value or add a dark theme, and it is what an AI agent reads if the tokens go into a [DESIGN.md file](/blog/design-md-vs-reference-library). Here is the shape, with example values that are placeholders and not a recommendation:

```css
:root {
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-text: #1c1b19;
  --color-text-muted: #6b6860;
  --color-border: #e3dfd6;
  --color-accent: #d6452b;
}
```

Then test the tokens on something real. Set a page of text, a button, a form and a table. Sampled colors nearly always need adjusting at this point: a background that looked right in a photograph is often too dark or too tinted for reading, and an accent may need a darker variant for text.

## How do I check contrast?

Check contrast for every pair of text color and background color you intend to use, before the palette is called finished. Colors sampled from posters and photographs were not chosen for reading small text on a screen, and pale or mid-tone pairs often fail.

The standard to check against is the Web Content Accessibility Guidelines. The W3C explains the contrast requirement, including the ratios for normal and large text, in [Understanding Success Criterion 1.4.3: Contrast (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html). Read the thresholds there, not from a blog post, because that page is the source.

The practical steps:

1. List every text and background pair: body text on background, muted text on background, text on surface, text on the accent color, and the accent color used as text.
2. Run each pair through a contrast checker. Browser developer tools show a contrast ratio in their color pickers, and most design tools have a checker built in or available as a plugin.
3. Fix failures by changing lightness first. Darken the text or lighten the background and keep the hue, so the palette still reads as yours.
4. Recheck after every adjustment, and check the dark theme separately if you have one.

## Where a filed archive helps

This exercise is quick when references are already in one place with notes, and slow when they are spread across apps. In [Supertaster](/), each saved item keeps its original image at full size along with a note and tags, and connected agents can search and look at the images, so you can ask an agent to go through a theme and report which colors recur. Check its answer against the images yourself. For the wider habit of reading a collection for patterns, see [How to find the patterns in what you save](/blog/find-patterns-in-saved-references).
