Guides

How to build a color palette from a photo or logo

Some of the best color schemes come from something that already looks good: a photograph, a painting or your own logo. Extracting a palette from an image gives you colors that belong together, and it saves hours of trial and error.

Why start from an image

Picking colors one by one often produces combinations that clash. A good photo already balances its tones, lighting and contrast. Taking its dominant colors lets you borrow that balance for a website, a presentation, a poster or a product label.

It is also the quickest way to match a brand: if you have a logo, extracting its colors gives you the exact values to reuse across materials.

Choose the right source image

Pick an image with the mood you want. A landscape at sunset gives warm, soft tones, while a city photo at night suggests cooler, high-contrast ones. Images with a lot of noise or many unrelated objects produce muddy palettes, so crop to the area that represents the feeling you want.

For logos, use the cleanest version you have. Compression artifacts in a small JPG can add colors that were never part of the design.

How many colors to keep

Most designs work with a small number. A common structure is one main color, one or two supporting colors, a neutral for backgrounds and text, and an accent for buttons or highlights. The Zipnify extractor lets you choose between four and twelve colors, and you will usually end up using five or six.

More colors are not better. Choose the ones that give clear contrast and discard similar shades.

HEX, RGB and HSL

The same color can be written in several ways. HEX is a six-character code starting with a hash and is the most common in web design. RGB gives the amounts of red, green and blue, and is used by many design and screen tools. HSL describes hue, saturation and lightness, which makes it handy when you want a lighter or darker version of the same color by changing a single number.

Check readability and accessibility

A beautiful palette is not useful if text becomes hard to read. Check the contrast between text color and background; for body text, a high contrast ratio is important for people with low vision and for anyone reading in sunlight. Dark text on a light neutral, or the reverse, is the safest base, and bright colors work better as accents than as backgrounds for paragraphs.

Using the palette

Click any color to copy its HEX code, or copy the whole palette as CSS variables to paste into a stylesheet. Your image is processed in your browser and never uploaded, which is useful for unpublished logos and client work.

Try the tool: Color palette extractor

Frequently asked questions

How many colors should a palette have?

Usually five or six: a main color, one or two supporting colors, a neutral and an accent.

What is the difference between HEX and RGB?

They describe the same color in different notation. HEX uses a six-character code, while RGB uses three numbers from 0 to 255.

Can I extract colors from a logo?

Yes, and it is the easiest way to reuse its exact brand colors. Use the cleanest version of the logo.

Is my image uploaded?

No. The colors are extracted locally in your browser.

More guides