No Signup Required

Image Color Palette Extractor

Upload any image and instantly get its dominant colors with HEX, RGB and HSL values.

  • Runs in your browser — nothing uploaded
  • Instant, no waiting in a queue
  • Free, no watermark, no daily limits

Drop in a photo, logo, illustration or screenshot and ToolzBank clusters its pixels to find the 2 to 12 colors that cover the most of the image, sorted by how much of it each one covers. Click a swatch to copy its HEX code, click the image to pick any exact pixel, and export the palette as CSS variables, SCSS, Tailwind config, JSON or a PNG.

How to Extract a Color Palette from an Image

  1. 1

    Upload an image

    Drop an image onto the page, click to choose one, or paste it with Ctrl/⌘ + V.

  2. 2

    Choose how many colors

    Use the slider to extract between 2 and 12 dominant colors.

  3. 3

    Copy or export

    Click any swatch to copy its HEX code, or export the palette as CSS, SCSS, Tailwind, JSON or PNG.

Why use ToolzBank Color Palette Extractor?

  • Extract 2 to 12 dominant colors automatically
  • HEX, RGB and HSL values for every swatch
  • Eyedropper: click the image to pick an exact color
  • Export to CSS variables, SCSS, Tailwind or JSON
  • Download the palette as a PNG
  • Runs entirely in your browser

Frequently asked questions

How do I get the HEX code of a color in an image?
Upload the image and click on the exact spot you want — the picked color’s HEX, RGB and HSL values appear below the image with a copy button.
How are the dominant colors chosen?
The image is sampled and grouped with k-means clustering, which finds the colors that best represent the most pixels. Results are sorted by the share of the image each color covers.
Can I use the palette in my CSS or Tailwind project?
Yes. The Export panel gives ready-to-paste CSS custom properties, SCSS variables, a Tailwind colors object and JSON.
Is my image uploaded?
No. Everything runs in your browser — your images are never uploaded to a server and never leave your device.

More free image tools