Tools › Create › Image Color Palette Extractor
🎨

Image Color Palette Extractor

Pull the dominant colors from any picture and export them as CSS, SCSS, JSON or Tailwind.

🖼️ Photos, logos, screenshots
🎯 Click to pick any pixel
♿ Contrast ratings
🔒 Never uploaded
🎨

Image color palette extractor

Pull the main colors out of any picture, with HEX, RGB and HSL codes.

🖼️
Drop an image here, or click to choose

JPG, PNG, WebP, GIF, SVG · you can also paste with Ctrl+V · never uploaded

No image handy?

How to use

  1. Drop a photo, logo or screenshot into the box (or paste one with Ctrl+V).
  2. Choose how many colors you want. The most common colors in the picture are listed first.
  3. Click a swatch to copy its HEX, RGB or HSL code, or click the picture to pick one exact pixel.
  4. Copy the palette as CSS variables, SCSS, JSON or Tailwind config, or download it as an image.

How the colors are chosen

The tool looks at every pixel in your image and groups similar colors together using the median-cut method, the same idea used when images are reduced to a limited palette. Each group is averaged into one representative color, and the percentage shows how much of the picture it covers. Fully transparent pixels are ignored, so a logo with a see-through background gives you the logo’s own colors.

Everything stays on your device

Your image is read by your browser and never uploaded. There is nothing to sign up for, and it works even on a slow connection once the page has loaded.

What designers use it for

  • Matching a website or app to a brand logo or hero photo
  • Building a palette from a mood board or product photo
  • Finding the exact HEX code of a color in a screenshot
  • Checking whether text will be readable on a color (the contrast labels use the WCAG formula)
  • Creating consistent social media graphics, slides and presentations

Frequently asked questions

How do I get a color palette from an image?

Drop the image into the tool above. It lists the dominant colors with their HEX, RGB and HSL codes. Click any swatch to copy the code.

How do I find the HEX code of a color in an image?

Click the exact spot in the picture and the tool copies that pixel’s HEX code. It is added to “Colors you picked” so you can copy it again later.

Is my image uploaded to a server?

No. The image is processed entirely in your browser, so private photos and unreleased designs stay on your device.

Why are the colors slightly different from what I see?

Each swatch is the average of many similar pixels, so it can differ slightly from any single pixel. Use the click-to-pick feature when you need the exact color at one point. JPEG compression can also shift colors by a small amount.

What do the contrast labels mean?

For each color, the tool shows whether white or black text is easier to read on it and the WCAG contrast ratio. A ratio of 4.5:1 or more meets the AA level for normal text, and 7:1 or more meets AAA. “AA large” (3:1 or more) is enough only for large or bold text.

Can I use the palette in CSS or Tailwind?

Yes. Choose CSS, SCSS, JSON or Tailwind under “Export the palette”, then copy the code straight into your project.

Which image formats work?

JPG, PNG, WebP, GIF (first frame), SVG, BMP and AVIF, as long as your browser can open them. HEIC photos from some phones need to be converted to JPG or PNG first.

Is this tool free?

Yes, it is free with no limits and no sign-up.