Color Palette from Image
Open a photo and its main colors appear as a palette straight away, with HEX codes and how much of the picture each one covers. Choose 2 to 16 colors, then export CSS, Tailwind, ASE, GPL or JSON. Nothing is uploaded.
Open an image to get its color palette
The main colors appear at once with their HEX codes, ready to copy or export.
Drop files here or press Ctrl+V. JPG, PNG, WebP, AVIF, GIF, HEIC, SVG and PSD.
Or start with a blank canvas
What is a color palette from an image?
A color palette from an image is a small set of colors that sums up a picture: the main tones of a beach photo, a product shot or a painting, each with its code. Designers use one to build a website theme, a brand kit or a slide template that matches a photo. This page groups pixels with similar colors and gives you one swatch per group, along with the share of the picture that group covers, so you can tell the background color from a small accent. The same image always gives the same palette, so you get identical codes when you come back. Six colors appear as soon as the image opens, and you can choose anything from 2 to 16.
How to extract a color palette from an image
- Choose Open File, drop a photo on the page or paste one with Ctrl+V. Six colors are extracted straight away.
- Set the number of colors from 2 to 16. Fewer colors give the main tones; more bring out small accents.
- Check the percentage on each swatch to see how much of the picture it covers. Click a swatch to copy its HEX code or see all its formats.
- Export the palette as CSS variables, SCSS, Tailwind, JSON, ASE, GPL or a PNG swatch image, or copy all the HEX codes at once.
Why make palettes here
- See how much each color coversEvery swatch shows its share of the picture, so you can tell the main color from an accent.
- 2 to 16 colorsStart with six and change the count whenever you like.
- Free exports for every toolCSS variables, SCSS, Tailwind v4 and v3, JSON, ASE, GPL and a PNG swatch image, with no account and no paid tier.
- Same image, same paletteResults do not shift between runs, so the codes stay the same when you come back.
- PrivateThe photo is read in your browser and never uploaded.
What people make palettes for
- A brand kit from a product photo or a logo
- A website or app theme that matches the hero image
- Wedding, party and event colors from an inspiration photo
- Room, outfit and mood board colors
- Reference palettes for painting, illustration and pixel art
- Slide and report themes that match the cover photo
Export formats and where they work
| Export | What you get | Use it in |
|---|---|---|
| CSS variables | Custom properties to paste into a stylesheet | Any website |
| SCSS | Sass variables, one per color | Sass projects and themes |
| Tailwind v4 | An @theme block for your CSS file | Tailwind CSS 4 |
| Tailwind v3 | A colors object for your Tailwind config file | Tailwind CSS 3 |
| JSON | The colors as data | Scripts, apps and design token tools |
| ASE | An Adobe Swatch Exchange file | Illustrator, Photoshop and InDesign (Swatches panel) |
| GPL | A GIMP palette file | GIMP, Inkscape and Krita |
| PNG | An image of the swatches | Canva, slides, mood boards and anything that takes a picture |
| HEX list | All codes copied at once | Figma, Canva brand colors, Procreate and any app with a HEX field |
Every export is free and needs no account. If your app is not listed, the HEX list or the PNG image works almost everywhere.
Example: a website theme from a beach photo
Open a beach photo and keep 6 colors. The swatches might show sand at 38%, sea blue at 27%, sky at 21% and three small accents, such as a red umbrella at 3%. Use the large swatches for backgrounds and the small, strong ones for buttons and links. Export the Tailwind v4 @theme block, paste it into your CSS file, and check text contrast on the darkest and lightest colors with the image color picker before you publish.
What to expect from the result
The palette depends on the photo. A large plain area, such as a sky, can take up more than one swatch, so lower the count, or crop the photo to the part you care about and open the cropped copy. To get one exact color from a spot you choose, use the image color picker. The palette reads the colors that are in the picture, so it is not a personal color analysis. Codes are sRGB values.
Color palette from image FAQ
How can I turn an image into a color palette?
Open the image on this page. Six main colors are pulled out at once, each with its HEX code and the share of the picture it covers. Change the count from 2 to 16, then copy the codes or export the palette for CSS, Tailwind, Adobe apps or GIMP.
How many colors should a palette have?
For most designs, 3 to 6. Use one or two large swatches for backgrounds, one for text and one or two strong accents for buttons and highlights. Go up to 10 or 16 when you want reference colors for painting or a mood board.
How do I find my color palette from a photo?
This page finds the colors that are in a photo, which works well for decorating, design and outfits that match a picture. Personal color analysis, the kind that sorts people into seasons, is a different thing: it compares your skin, eyes and hair in good daylight and is best done in person.
Can ChatGPT tell me the color palette of an image?
AI chat apps can describe the colors in a photo and suggest codes, but those codes are often estimates. A palette extractor reads the actual pixels, so the HEX codes match the picture. This one also runs on your device, so the photo is not sent anywhere.
Can I use the palette in Tailwind, Canva or Adobe apps?
Yes. Export Tailwind as a v4 @theme block or a v3 config, or use CSS variables or SCSS on other sites. For Illustrator, Photoshop and InDesign, export ASE and load it in the Swatches panel. GIMP, Inkscape and Krita read GPL files. For Canva, add the HEX codes to your brand colors or use the PNG swatch image.
Why is the biggest swatch a color I barely notice?
Coverage counts pixels, not attention. A gray sky or a white wall can fill half the picture even though your eye goes to a small red coat. Look at the percentages, raise the number of colors to bring small accents in, or crop the photo to the area you care about.
Are my photos uploaded anywhere?
No. The editor runs in your browser tab and reads your files directly from your device. There is no upload step, no account and no server copy. When you close the tab, the working copy is gone unless you saved it.
More image tools that stay on your device
Cut out a subject with the background remover, erase unwanted things with remove object from photo, or hide faces with blur face, then bring the result in as a layer. To change many files at once, use the image resizer. Before you share a photo, strip its location with the photo metadata remover.