Color Palette from Image
Open a photo or image and we find its dominant colors automatically, along with their share of the image. Download the palette as a PNG color card, CSS variables, text and JSON. The image is processed in your browser and is not sent to a server.
Stays on your device · never uploaded
Free, no sign-up
46 Color Palette from Image
- 1 Pick
- 2 Process
- 3 Download
Processed on your device · no upload
You opened this inside an app. To download without trouble, use the ••• menu and pick Open in browser.
Live status
Reading the file
Result
Your colors are ready.
0colors
0 BYour data sent to our server: 0 bytes · processed on your deviceWhy 0: this page's security rule blocks sending data at browser level; everything happens in this tab. CSP · connect-src 'none' · form-action 'none'
Couldn't convert the file.
Selected color
Pick a spot in the image, grab a color from your screen or type a code below.
- The work is done in this tab, on your device.
- The palette is calculated from the pixels of a scaled-down copy of the image; the percentages are approximate shares.
- No file is sent to our server; closing the tab clears everything.
Choose an image first
Stages
- Reading the file
- Preparing color files
- Preparing the file
WhatsApp, email…: the file goes straight from your device to the app you pick.
Like it?
- Your file stays on your device
- No upload to our server
- Free, no sign-up
01
How do you extract a color palette from a photo?
The mood of a photo is often set by a few dominant colors. Finding these colors is a quick way to choose colors that match the photo for a presentation, a website or an invitation.
The tool groups the pixels of a scaled-down copy of the image by color and finds the average color of each group. The result lists the number of colors you chose and each one's approximate share of the image.
Click a color in the palette and its HEX, RGB, HSL and CMYK codes appear in the side panel. If you like, you can switch to picking colors one by one from the image and complete the palette by hand.
02
How to extract a color palette in 3 steps
Open the image: Drop your photo or image into the area above; the palette is calculated right away.
Choose the number of colors: Set how many colors you want, from 3 to 10, with the slider; the palette is recalculated.
Save the palette: Press “Save palette”; get the PNG color card, CSS variables, TXT and JSON files one by one or with “Download all”.
03
When is it useful?
Brand and presentations: Choose heading, button and background colors that match a cover photo.
Web design: Add the palette straight into a stylesheet as CSS variables.
Home and events: Carry the colors of a decor photo over to an invitation, decorations or paint.
Social media: Build a consistent color scheme across your posts.
04
How is the palette calculated?
Method: Pixels are first split into boxes in color space (median cut), then the color groups are refined with a few rounds of k-means. Each color's value is the average of the pixels in its group.
Shares: The percentage is the proportion of pixels closest to that color; it is approximate because it is calculated from a scaled-down copy of the image.
Transparent areas: Transparent or semi-transparent pixels are ignored; in logos, the background does not skew the palette.
Images with few colors: If the image has fewer distinct colors than you asked for, the palette comes out with fewer colors.
CMYK: The CMYK values in the files are approximations calculated without a color profile.
05
Privacy and automatic deletion
This tool does not send your file to our server: all processing happens in your browser, on your device. The page is served with a security policy (Content-Security-Policy) that technically prevents the file's contents from being sent anywhere; no analytics or advertising scripts run on this page.
The result file is also created on your device and only you download it. It is cleared from the browser's memory when you close the tab or choose “New file”. Our server keeps no file name or content record of this processing.
06
Frequently Asked Questions
How many colors can I extract from a photo?
You can choose from 3 to 10. If the image does not have that many distinct colors, the palette comes out with fewer.
What do the percentages mean?
The approximate share of the image each color covers. For example, in a photo with a large sky, the blue tone gets the highest percentage.
In which formats can I download the palette?
As a PNG color card, CSS variables (inside :root), a text file listing each color's codes, and a JSON file that programs can read. The files download separately; no ZIP is made.
Is my image uploaded to a server?
No. The palette is calculated in your browser; the page comes with a security rule that technically blocks it from connecting to outside servers.