Images & PDF

Color Palette Extractor

Upload any image and extract 5 dominant colors with HEX and HSL values.

Drop image here

or click to browse (JPG, PNG, WebP, GIF) — or Ctrl+V to paste

Images are processed locally, never uploaded to any server.

An eyedropper above a landscape photo with five color swatches flowing out of it

How to use

  1. Drop a photo or image on the box, click it to choose a file, or paste an image with Ctrl+V. JPG, PNG, WebP and GIF work.
  2. The 5 dominant colors appear at once, ordered from lightest to darkest, each with its HEX and HSL value.
  3. Click Copy HEX or Copy HSL next to a color and paste it into Canva, Photoshop, Figma, your website's CSS or a paint store's color matcher.

How to get a color palette from an image

Pick an image whose colors you like: a sunset, a room photo, a product shot, a painting or a brand's logo. Drop it here and the tool finds the five colors that cover the most of the picture. Use them as the palette for a slide deck, a wedding invitation, a website theme, a quilt or a room makeover.

To match a single exact spot, such as one button in a screenshot, use the Color Picker instead; this tool averages similar shades into a few main colors.

How the colors are found

The image is scaled down and about 2,000 pixels are sampled evenly across it. Those pixels are grouped into five clusters of similar color with the k-means method, and each cluster's average becomes one swatch. Fully transparent pixels in a PNG are ignored, so a logo on a transparent background gives the logo's colors, not white.

Because the palette shows the most common colors, a small but striking accent, such as a red umbrella in a gray street, may not appear. Crop the image around the part you care about and drop it in again to bring those colors forward.

HEX, RGB and HSL

Both formats describe the same color; use whichever your app asks for.

FormatExampleWhere it is used
HEX#4F46E5Websites, Canva, Figma, most design apps
HSLhsl(243, 75%, 59%)CSS; easy to make lighter or darker by changing the last number
RGBrgb(79, 70, 229)Office apps and image editors (convert HEX with the Color Picker)

Frequently asked questions

Why are only 5 colors shown?

Five is enough for a balanced palette: usually one or two background tones, a main color and an accent. More swatches tend to repeat near-identical shades.

Why does the same image sometimes give slightly different colors?

The grouping step can settle on slightly different clusters when colors are evenly mixed. The differences are small shades of the same colors; run it again or crop the image if you want a particular tone.

Can I use the colors from a photo I found online?

Colors themselves are not copyrighted, so using a palette for inspiration is fine. The photo is a different matter: don't reuse the image itself without permission.

Is my image uploaded?

No. The image is analyzed in your browser and never leaves your device.

Found a problem or have an idea? Report a problem

Share

You might also like