Color Palette Generator from Image
Upload a photo and get its most-used colors as codes you can copy. The photo stays on your device.
Loading the tool...
When to use it
- Pull a brand color from a logo photo: upload it, choose 4 colors and click a swatch to copy its HEX code.
- Build a site or slide palette from a photo: extract 6 to 8 colors from a landscape that matches your mood, then press Copy code to get CSS variables and HSL values.
- Match one exact spot: click directly on the photo, for example on a sweater or product, to read and copy that pixel color.
How to use
- Upload a photo.
- Choose how many colors to extract (4–10) and check the result.
- Click a color to copy its HEX code, or copy the CSS variable code.
How it works
The photo is scaled down to at most 900 px on a canvas, its pixels are grouped into color buckets, and the most common distinct colors become your palette with HEX, RGB and HSL codes. It all happens in your browser with no library or server, and the photo is not saved.
For privacy-sensitive images, the processing happens in your browser, so your files stay on your device and are not uploaded to a server. How to verify.
Learn more
Split colors into 3 roles
Colors look tidy when you give them three roles.
- Background color: the color that covers large areas
- Text color: a color with strong contrast against the background
- Accent color: used in only one or two places that must stand out
Once these three are set, you don't have to think about colors every time you design. Even when new photos or content come along, sticking to the same three colors builds a consistent brand feel.
Why do 3 color roles look clean?
The more colors there are, the longer it takes the eye to decide where to look first. When roles like background, text and accent are set in advance, viewers naturally move from the wide background to the text they need to read to the button they need to press. When colors are mixed up, people don't know where to focus and the whole design feels cluttered.
Changing colors for seasons or campaigns
A common approach is to keep the base combination and switch only the accent color for a special season (summer, the holidays and so on). Keeping the background and text colors while changing the accent keeps things consistent but still feels new. A small change is often fresh enough, without changing every color.
FAQ
What is a HEX code?
A way of writing a color as six characters, like #FF5A36. It is widely used on the web and in design tools.
Is my photo uploaded?
No. The colors are extracted inside your browser and the photo is never sent to a server.
How many colors can I extract?
Choose 4, 5, 6, 8 or 10 colors. Changing the number re-runs the extraction on the same photo.
Do I also get RGB and HSL values?
Yes. Each swatch shows HEX and rgb, and the code box lists CSS variables plus HSL values. CMYK is not supported.
Can I pick one exact spot instead of an average?
Yes. Click the photo and you get that exact pixel color as HEX, copied to your clipboard.
Which image types can I use?
Any image your browser can open, such as JPG, PNG or WebP. The photo is processed in the page and not uploaded.
Can I download the palette as an image or a swatch file?
No. The tool shows the colors as clickable swatches and lists them in a code box, and 「Copy code」 copies that text (CSS variables plus HSL values). There is no image or swatch-file export, so paste the codes into your design app or take a screenshot of the swatches.
Can I combine colors from two photos into one palette?
Not in one step. The tool reads one photo at a time, and loading a new photo replaces the previous result. Copy the codes from the first photo, load the second, copy those too, and merge the lists in your own file.
How do I check that text will be readable on a color from my palette?
This tool only extracts colors. Copy the HEX code, then open the Color Picker from Image tool on this site, where you pick a background and a text color to see the contrast ratio and whether normal and large text pass AA and AAA.