Color Palette Generator

Detect HEX/RGB color codes from any image or pick a color to build a harmonic palette.

Extract from Image

Drag image or click to upload

PNG, JPG, GIF, WebP

or

Pick a Custom Color

About This Tool

Pick the color code of any point in an image and build a matching palette from it. Open a photo and its main colors appear as a palette with HEX, RGB and HSL codes, or click anywhere on the image to read that exact pixel. If you already know your base color, type it in and explore complementary, analogous, triadic, split-complementary and monochromatic harmonies. No install, no sign-up.

It is most useful when a color exists somewhere other than in a code: lifting a brand color from a logo or banner image so your site and social posts match it, reading an exact code from a photo of fabric, tile or a printed card to hand to a designer or print shop, or basing a store theme and slide deck on the colors of one photo.

Choose anywhere from 3 to 16 colors in the palette, copy any code with one click, grab ready-made variables from the "CSS Output" section, and use the Share Link button to send the same palette to someone else. The image you open never leaves your device.

Frequently Asked Questions

How do I find the color codes in an image?
Drag the image onto the upload area or click to select it. The main colors appear as a palette, and clicking any swatch shows its HEX, RGB and HSL codes in the "Selected Color" column.
How do I read the color of one specific spot?
After opening the image, click or tap that exact spot. The pixel color becomes the selected color and its codes appear beside the image. For tiny details, enlarge the image before uploading so your click lands more precisely.
How do I change the number of colors in the palette?
Use the "Number of colors" slider below the image; move it between 3 and 16 and the palette rebuilds instantly. Four to six colors is usually enough for a brand palette, while higher numbers are better when you want to see a photo's full range.
How do I start from a specific color, like my brand color?
Open the custom color section, type the HEX code or pick the color from the color box, then press "Generate Harmonic Palette". A palette is built around that color.
How do I pick a color from outside this page?
If your browser supports the eyedropper, a "Pick a color from the screen" button appears next to the HEX field; press it and click anywhere on screen to lift that color. If the button is not there, take a screenshot and open it in this tool instead.
How do I copy the HEX, RGB or HSL code?
All three values appear in the "Selected Color" column with their own Copy button. One press puts the code on your clipboard and the button briefly shows a checkmark. In the harmony rows, clicking a swatch copies that color too.
How do I export the palette as CSS?
Open the "CSS Output" section. A snippet like :root { --color-1: ...; } is ready to copy straight into your project's CSS file, and it updates whenever the palette changes.
How do I send a palette to someone?
The Share Link button builds a link that carries the color codes. Anyone who opens it sees the same palette in this page, so you do not need to send an image to a client or your design team.
What is color harmony and which one should I pick?
A harmony is a rule for combining colors based on their position on the color wheel. Complementary (the opposite color) gives the most contrast and suits buttons and calls to action, analogous (neighboring colors) is calm and even and works better for backgrounds and text, triadic and split-complementary sit between the two, and monochromatic is the light-to-dark range of a single color.
What is the difference between HEX, RGB and HSL?
All three describe the same color and only differ in notation. HEX such as #FF5733 is the most common in CSS and web design, RGB states red, green and blue separately and shows up more in graphics software, and HSL gives hue, saturation and lightness, which is the easiest form when you only want to make a color lighter or less saturated.
Which image formats are supported?
PNG, JPG, GIF and WebP. If your photo is in another format (an iPhone HEIC, for example), convert it to JPG with the image converter on this site first and then open it here.
Are the codes exactly the original colors?
The code you see is exactly the value stored in the image file. If the image was saved with JPEG compression, pixels near edges shift slightly, so for brand colors it is better to open a PNG or the original logo file rather than a compressed screenshot.
Is my image uploaded anywhere?
No. The image you open never leaves your device and only you see it. The share link carries color codes only, not the picture.
Was this tool helpful?
4.6out of 5
Thanks for your feedback!

Related tools

Home