Your pixels stay on your device.

Color Palette from Image

Extract colors and refine them with sampling points.

Loading workspace…

A color palette from image tool reads a photo and pulls out the main colours for a brand, a room, a site, or a layout. Open the picture, choose how many colours you want, and drag the sample points if a swatch landed in the wrong place. Export a HEX list, CSS variables, a Tailwind config, an ASE file, a GIMP palette, or a PNG card.

Open a JPG, PNG, WebP, AVIF, HEIC, GIF, or BMP of up to 50 MB. Drop the file, paste it, or take it with the camera. Up to 50 images can go through in one batch with the same settings. An animated GIF is processed as its first frame. Runs in your browser. Nothing is uploaded.

Formats
JPG · PNG · WebP · AVIF · HEIC · GIF +1
Max file
50 MB
Batch
Up to 50
Output
PNG
A photo yields six swatches, one sample point is dragged, then a HEX list and a PNG card appear
A photo yields six swatches, one sample point is dragged, then a HEX list and a PNG card appear

How to Extract a Color Palette from an Image

  1. Open a JPG, PNG, WebP, AVIF, HEIC, GIF, or BMP (up to 50 MB), paste it, or take one with the camera. To extract palettes from a set with the same settings, add up to 50 files at once.

  2. Set Number of colors from 3 to 16. The page opens at 6. Use 3–5 for a tight scheme, or more when a busy photo really does contain many distinct colours.

  3. Choose Extraction method: OKLab k-means (the default) or Median cut.

  4. Choose Order colors: Most common (default), Hue, or Lightness.

  5. If a white wall or a black backdrop is taking up most of the swatches, turn on Ignore near-white or Ignore near-black. Drag any sample point onto a colour you actually want to keep.

  6. Export a HEX list, CSS variables, a Tailwind config, an ASE file for Adobe apps, a GPL file for GIMP, or a PNG swatch card. You can copy the HEX list, download the card, or pack a batch into a ZIP. Source photos are not overwritten.

Color Palette from Image Features

A count from 3 to 16, with two ways to pick the colours

You choose 3 to 16 swatches, starting at 6. The default k-means in OKLab groups pixels in a space closer to human perception than RGB; median cut splits the colour range instead, as older tools did. Neither is an AI model or invents colours. Analysis runs in a background worker on a 200-pixel copy, so large photos stay responsive.

Sample points you can drag

Each colour in the palette is tied to a point on the picture. If a swatch landed on a highlight or a bit of background you do not care about, drag that point onto the object you meant to sample — a wall, a logo, a fabric. The swatch updates to the colour under the new point. Dragging is on by default.

Sort order and an ignore-white-and-black switch

By default the swatches are sorted by area, so the colours that cover the most of the photo come first. Sort by hue for a rainbow-style strip, or by lightness for a light-to-dark scale. The ignore-white/black switch keeps a pale backdrop or a black studio sweep from taking the slots — the usual fix when a product shot on white comes back as three shades of off-white and only one useful accent.

Exports that drop into design and code

The default exports are a HEX list and a PNG swatch card. For a project, copy CSS variables or a Tailwind config, or download ASE for Adobe apps and GPL for GIMP. The page does not pull colours from a website URL.

Color Palette from Image Use Cases

Build a site or brand palette from a logo or a product photo

A client sends a logo or product shot and wants colours that already belong to it. Open the file, keep the count around 5 or 6 with k-means, and turn on ignore white/black if the background crowds out the ink, dragging stray points onto the mark. Export CSS variables or Tailwind for a site, and ASE for an Adobe app. For one exact hex, the color picker from image is faster.

Pull a room or interiors scheme from a photo

A renovation often starts with a picture of a room you like. Open it, set the count to 5–8, and sort by area so walls, floor and large furnishings lead. Ignore white/black if a bright window steals swatches, and drag points onto the sofa, wood and textiles you want to match. Export the PNG card and HEX list, then check them with the color blindness simulator.

Sample colours from an outfit or a fabric photo

Clothes and printed fabric are hard to describe and easy to mis-copy by eye. Open a clear photo, use a modest count to avoid near-duplicates, and drag the points onto the garment or weave, not the hanger. Export the HEX list or PNG card, then take a hex to a color palette generator for companion colours, such as a complement or lighter neutral, that the photo lacks.

Turn a mood-board or illustration into swatches a team can use

A collage, film still or illustration can carry a campaign's colour, but only once it is extracted into a list others can paste. Open the board, raise the count if the frame is busy, and sort by hue for a spectrum-style card. Export ASE or GPL for desktop apps and the PNG card for a shared document. To reduce the picture itself to those colours, use color quantization.

How This Tool Chooses Colours — and How Many You Need

The tool is a color palette extractor, not a generator and not a single-colour picker. It looks at the pixels you opened and clusters them into the number of swatches you asked for. That is why a color palette from image result can change when you move a point, change the count, or ignore whites and blacks: you are steering which pixels are allowed to vote, not asking a model to invent a scheme.

How many colours you should ask for depends on the job. Three to five is plenty for a tight brand. Six, the default, is a comfortable middle for a site or a small identity. Eight to ten suits a room or a busy mood board. Going past that is useful only when the photo really does contain many distinct colours; otherwise you get near-duplicates of the same wall or sky.

Without a photo, or for a complementary or triadic scheme from one hex, use the color palette generator. This page is built for extraction, with draggable points, the ignore-white/black switch and ASE and GPL exports; to copy a single pixel's hex, use the color picker.

A color palette from image tool also does not read a website URL, and it does not install as a browser extension. Open an image you already have, or take one with the camera. It is not an AI generator: the colours come from the file, not from a prompt.

Is the Color Palette from Image Private?

Yes. The analysis, the preview, and every export run in your browser. Your photo is not uploaded, and nothing leaves the device you are using. There is no account and no watermark. The original photo on disk is left alone.

Color Palette from Image FAQ

How do I extract a color palette from an image?

Open the photo, set the number of colours (the page starts at 6), and, if needed, drag the sample points or ignore white and black. Then copy the HEX list or export CSS, Tailwind, ASE, GPL, or a PNG card.

Can I get a color palette from an image with HEX codes?

Yes. Copy a HEX list, export CSS variables or a Tailwind config, or download an ASE file for Adobe apps, a GPL file for GIMP, or a PNG swatch card. HEX and the PNG card are the default, so a one-click copy gives you the codes in swatch order.

How many colours should a palette have?

It depends on the job. Three to five is tight; six is the default and a solid start for a site or a small brand; eight to ten suits a room or a busy mood board. Ask for more only when the photo really contains that many distinct colours.

What is the difference between this and the color palette generator?

This page extracts colours already in a photo. The generator builds a scheme from scratch — random, from a hex, or by a harmony rule such as complementary or triadic — and can also start from an image. Use this color palette extractor when the photo is the source of truth.

Can I extract a palette from a website URL?

No. URL extraction is not available here. Take a screenshot of the page, then open that image here and the colours are extracted the same way as from a photo. The tool also does not install as a browser extension.

How do I pull a color from a photo?

Drag a swatch's point onto the object or area you want; the swatch updates to the colour under it. The starting swatches come from clustering the pixels, k-means in OKLab by default or median cut, on a downsampled copy in your browser, so no colour is invented. For one exact pixel, the color picker from image is quicker.

Does this tool work on iPhone and Android?

Yes. It runs in the mobile browser, so you do not need an app. Open a photo from the library or take one with the camera, adjust the count, drag the points with a finger, and copy the HEX list or download the palette card.

Is it free, and is my image uploaded when I get a color palette from an image?

It is free, with no account and no watermark, and the image is not uploaded. You can open a file, preview the palette and export it without registering. Clustering and every export stay in your browser, so the file is never sent to a server.