Turn any image into a usable color palette
A palette generator analyzes an image and pulls out the handful of colors that best represent it. Instead of manually eyedropping dozens of pixels and hoping you captured the important tones, you load a photo and instantly get a curated set of swatches — the dominant hues that give the image its character. Designers use this to build a cohesive color scheme from a mood photo, developers use it to derive theme colors from a hero image, and anyone can use it to find colors that naturally work together.
Pixohub draws a copy of your image scaled down to 100 pixels on its longest side, reads every pixel of that small copy in the browser, and groups similar colors together to find the ones that appear most prominently. Shrinking first keeps it instant on large photos; a color that covers only a few specks of the original can be averaged away, so sample tiny details with the color picker instead. The result is a compact palette that captures the overall feel of the picture rather than a random sample of individual points. Each swatch comes with its HEX code so you can drop it straight into CSS, a Tailwind config, a Figma file, or any tool that speaks color. Because the analysis happens locally on your device, it is fast and completely private — your image is never uploaded to a server.
Extracting a palette from an image is one of the quickest ways to start a design with confidence. A sunset photo can give you warm oranges and deep purples that already harmonize; a product shot can yield the exact brand accents you need; a piece of artwork can seed an entire UI theme. Because the colors come from a real image, they tend to feel balanced and natural together in a way that arbitrary color choices often do not.
How to use Palette Generator, step by step
- Load a photo or artwork with Drop an image. Six swatches appear next to a thumbnail, each with its hex code.
- Drag Number of colors between 4 and 12. The swatches are ordered from most to least common.
- Press Copy under a swatch for one hex code, or Copy all HEX codes for the whole list, one code per line.
- Compare the swatches with the image. The palette is built from the most common colour groups, so a large plain background can outnumber a smaller bright subject.
- If a colour you care about is missing, crop the image to that part with the crop tool and load the crop, or use the color picker to sample it directly.
- Press New image to try another picture.
Real example: a bright parrot photo gives a muted palette
We loaded Kodak test image 23, two macaws (one red, one blue and yellow) against a blurred green background. Six colours appeared in 46 ms: #303020, #505040, #605040, #606040, #404030 and #507020, all dark olive and brown tones from the background. At 12 colours the only bright addition was yellow #f0c000; the red macaw produced no swatch at either setting.
Every code ends in 0 in each channel (such as #f0c000) because the tool groups colours into steps of 16 levels before counting. A tall iPhone photo with sky gave #f0f0f0 and five greys in 76 ms.
| Image | Colours | Result |
|---|---|---|
| Kodak parrots, 768 × 512 | 6 | Six dark olive/brown tones |
| Kodak parrots | 12 | Adds #f0c000 yellow; no red |
| Our test graphic, transparent | 6 | #f0e0e0, #20d0e0, purples, #101020 |
Last updated
Palette Generator compared with other ways to do it
GIMP palette import
GIMP can import a palette from an image in its Palettes dialog, with a number of colours you choose, and save it as a reusable palette file. That fits a workflow that stays inside GIMP. This tool gives you hex codes on the clipboard in one step, ready for CSS or a design app.
Picking colours by hand
An eyedropper in Photoshop, GIMP or our color picker lets you choose exactly which colours matter, including a small accent the eye notices but a count would miss. For brand work, that hand-picked set is often better. This tool is a fast way to see which tones dominate an image by area.
Upload-based palette extractors
Online extractors use various methods, and some aim for distinct, vivid colours rather than the most common ones, which can suit design work better. They need the image uploaded first. This one counts colours on a small copy of your image in the browser, which took under 0.1 seconds in our tests.
HEX vs RGB and how to use your palette
The palette lists each color as a HEX code, the six-digit hexadecimal notation like #3A7BD5 that is standard across CSS, HTML, and design apps. HEX packs the red, green, and blue channels into one compact string, where each pair of digits ranges from 00 to FF. The equivalent RGB notation writes the same three channels as decimal numbers from 0 to 255 — so #3A7BD5 is rgb(58, 123, 213). Both describe an identical color; HEX is simply the format most people paste into stylesheets and design tools.
Once you have your swatches, treat them as a starting point. A common approach is to pick one dominant color as your primary, a contrasting swatch as an accent, and a light or dark tone for backgrounds and text. You can adjust the values afterward to hit accessibility contrast targets — the palette gives you a harmonious foundation, and small tweaks let you meet real-world requirements without losing the mood of the original image.
Save the codes you like by copying them out one at a time. Since the whole process is instant and unlimited, you can try several source images to compare the palettes they produce and choose the direction that fits your project best.