Image Color Palette Extractor
Pull the dominant color palette out of any image — right in your browser.
Drop in an image to pull out its dominant colors and copy each HEX value. Free. No sign-up. Runs in your browser, nothing is uploaded.
JPEG, PNG, WebP or GIF · processed locally, never uploaded · Up to 50 MB per file
Choose any image to pull out its 6 most dominant colors. Click a swatch to copy its HEX value.
Drop in a photo, logo or screenshot and you get up to six dominant colors, biggest first, each with its HEX code and the share of the image it covers. Click a swatch to copy its HEX, or copy the whole set as CSS custom properties in one go. The image is analyzed on your device and never uploaded.
It reads anything your browser can open — JPEG, PNG, WebP, GIF and more — up to 50 MB.
What people pull palettes from
- A client's logo or website screenshot when you need the brand colors and nobody can find the style guide.
- A mood-board photo — a beach at dusk, a market stall, a film still — as the starting point for a deck, a website theme or a room.
- Product shots to match banners, packaging inserts or a shop's accent color to the product itself.
- A painting or illustration you admire, to study how few colors it actually uses.
What the swatches and percentages mean
Each swatch is built from real pixels in your image: the average of all the pixels that ended up in its group, not a rounded-off grid value. The percentage underneath is that group's share of the pixels the tool sampled.
Two details catch people out:
- The percentages rarely add up to 100. Colors that are distinct from the six chosen swatches, but too rare to earn a place, are left out — and so is their share. A busy photo might show swatches totalling 70%; a flat logo will be close to 100%.
- Near-identical shades are merged. Any group within a fixed distance of an already chosen color (60 on the 0–441 scale of distance in RGB space) adds its weight to that color instead of claiming a slot. That is why a photo of a blue sky shows one strong blue rather than five barely different ones.
How the colors are found
- Downscale. The image is redrawn at no more than 120 pixels on its longest side. A thumbnail tells the same color story as a 12-megapixel original and keeps the analysis instant, even on a phone.
- Bucket. Each channel (red, green, blue) is cut down to its top four bits, which snaps every pixel onto a 16 × 16 × 16 grid of 4,096 cells. Similar colors land in the same cell.
- Count and average. The tool counts the pixels in each cell and averages their real colors, so the swatch is natural rather than blocky.
- Pick and merge. Starting with the busiest cell, it takes colors one by one, folding any cell that is too close to an existing pick into it, until six distinct colors are chosen.
The result favors broad, defining colors over rare accents — what you usually want for a background-and-surface palette, and the reason a tiny highlight can go missing.
Getting a cleaner palette
- Crop first. A wide neutral border, a white studio background or a big expanse of sky will claim one or two of the six slots. Cut the image down to the part whose colors you want.
- Extract from the final version. A strong filter shifts every color; pull the palette from the edit you actually plan to use.
- Screenshots beat compressed photos of screens. For a UI or a logo, a clean PNG screenshot gives exact brand colors; a JPEG or a phone photo of a monitor adds noise and drifts the averages.
From swatches to code
Copy all as CSS variables produces a block like this, ordered from most to least dominant:
:root {
--color-1: #1F3A5F;
--color-2: #E8DCC4;
--color-3: #C0583A;
}
Rename the variables to something meaningful (--brand, --surface, --accent) and you have a starting theme. Before you commit to text on a background color, run the pair through the Color Contrast Checker — dominant photo colors are often mid-tones that fail readability targets for body text. If you need RGB or HSL, the Color Converter translates any HEX, and the Color Palette Generator can build a full harmonious scheme around the color you like most.
Frequently asked questions
Related tools
All Color tools →- Color ConverterConvert any color between HEX, RGB and HSL instantly — pick, preview and copy in one place.
- Color Contrast CheckerCheck text-vs-background contrast against WCAG AA & AAA — with a live preview.
- CSS Gradient GeneratorBuild linear and radial CSS gradients with two colour stops, an angle slider and a live preview — then copy the code.
