Image Palette Extractor
Add an image and get its main colors as a palette, with HEX codes and how much of the image each color covers. Export as a list, CSS variables, JSON or PNG.
Drop an image here
or click to browse • paste with Ctrl+V
Choose imageExtracted palette
How to use Image Palette Extractor on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with Image Palette Extractor
Everything this tool offers.
About Image Palette Extractor on KickSolve
What it does and how to get the best results.
How the image palette extractor works
Your image is shrunk to at most 200 pixels on its longest side, which keeps things fast and smooths out noise. Transparent pixels are skipped. The remaining pixels are grouped with a median cut method: the group with the widest range of color is repeatedly split at its median until you have the number of colors you asked for. Each group is averaged into one swatch, and its share of all pixels becomes the percentage. Groups that average to the same color are merged. Everything happens in your browser.
Choosing the number of colors
Fewer colors give you a simple, usable palette, while more colors capture subtle shades. Four to six colors suit brand logos and flat graphics. Eight is a good default for photos. Twelve or sixteen colors suit sunsets, gradients and detailed illustrations where many tones matter.
Tips for logos, photos and screenshots
- Turn on Ignore near white and black when the image has a plain white or black background.
- Crop the image to the part you care about before extracting colors.
- Sort by Hue to group similar colors, or by Lightness to see the palette from light to dark.
- For brand colors, compare the result with the exact pixels using the Image Color Picker.
What you can use an extracted palette for
- Finding brand colors from a logo.
- Building a website or app theme from a hero photo.
- Making mood boards and design inspiration.
- Matching presentation slides to a product photo.
- Choosing colors for interiors, fashion and art projects.
Good to know
- Colors are read as sRGB values, which is what browsers use for images.
- Swatches are averages of similar pixels, so they can differ slightly from any single pixel.
- HEIC photos cannot be opened by most browsers. Convert them to JPG first.
- The JSON export includes HEX, RGB and the percentage for each color.
How many colors to extract
A quick guide to choosing the palette size.
| Colors | Best for | Level of detail |
|---|---|---|
| 4 | Logos, icons and flat illustrations | Low |
| 6 | Simple posters and UI screenshots | Low to medium |
| 8 | Most photos and general use | Medium |
| 12 | Landscapes, gradients and product photos | High |
| 16 | Detailed artwork and complex scenes | Very high |
Frequently asked questions
Quick answers.
How do I extract colors from an image?
Add your image by dropping it, choosing a file or pasting it with Ctrl+V. The tool instantly shows the main colors as swatches with HEX codes and the share of the image each color covers. Click a swatch to copy its HEX.
How many colors should I extract?
Use 4 to 6 colors for logos, icons and flat illustrations, 8 for most photos, and 12 or 16 for gradients, landscapes and detailed artwork. You can change the number at any time.
What does the percentage on each swatch mean?
It is the share of the image pixels that fall into that color group. Transparent pixels are ignored, and with Ignore near white and black turned on, plain white and black pixels are skipped too.
Why is an extracted color not exactly the pixel I see?
Each swatch is the average of a group of similar pixels, so it may not match any single pixel exactly. To read one exact pixel, use the Image Color Picker.
How do I ignore a white or black background?
Turn on Ignore near white and black in the settings. Pixels that are almost pure white or almost pure black are skipped, so the palette shows the real colors of your subject.
Does it work with transparent PNG files?
Yes. Transparent and mostly transparent pixels are ignored, so the palette only reflects the visible parts of the image.
Can I get a palette from a website or video?
Take a screenshot and paste it here with Ctrl+V. The palette is then extracted from the screenshot.
Which image types are supported?
JPG, PNG, WEBP, GIF and SVG work in all current browsers. HEIC works only in some browsers, so convert HEIC photos to JPG first.
What export formats are available?
You can copy a HEX list, copy CSS variables, copy JSON with HEX, RGB and percentage values, or download the palette as a PNG.
Is my image uploaded anywhere?
No. The image is read and processed in your browser and is never sent to a server.
More free tools from KickSolve
Related everyday tools.