# Image Color Palette Generator - Extract Dominant Colors from a Photo

> Free online colour palette extractor: find the 3–16 dominant colours with percentages, copy HEX / RGB / HSL and export CSS variables, JSON or a PNG strip.

- URL: https://qilingtools.com/en/image/palette
- Category: Image Tools (https://qilingtools.com/en/image)
- Tags: [Image](https://qilingtools.com/en/tags/image), [Design](https://qilingtools.com/en/tags/design)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Upload a photo, poster, illustration or screenshot and the tool clusters every pixel with k-means to find the 3–16 colors that best represent it, showing how much of the picture each one covers. Click any value to copy it as HEX, RGB or HSL, and sort the palette by share, hue or lightness. When you need brand colors, design inspiration or a scheme for slides and websites, export the palette as CSS custom properties, JSON or a labelled PNG swatch strip. Everything is computed in your browser.

## How to use

1. Upload an image
2. Choose how many colors to extract and how to sort them
3. Click a value to copy it, or export CSS variables, JSON or a PNG swatch

## Features

- k-means clustering for 3–16 dominant colors
- Percentage share of each color
- One-click copy of HEX / RGB / HSL
- Export as CSS variables, JSON or PNG swatches

## FAQ

### How is this different from the color picker?

The color picker grabs the exact color of a single pixel. The palette tool analyses the whole image and summarises it into a handful of dominant colors with their shares, which is better for building color schemes.

### Why do the colors change when I change the count?

For the same image and count the result is always identical. Changing the number of colors re-runs the clustering, so similar shades merge or split — that is expected.

### Are my files uploaded to a server?

No. Everything runs locally in your browser via WebAssembly. Files never leave your computer and are discarded when you close the page.

### Do I need to sign up or pay?

No. The site is completely free, requires no account, has no usage limits and adds no watermarks.

## Related tools

- [PDF to Image](https://qilingtools.com/en/pdf/to-image): Free online PDF to image converter: render every page as a high-resolution JPG or PNG at 72/150/300 DPI, download all as a ZIP. Processed locally, no upload.
- [Image to PDF](https://qilingtools.com/en/pdf/from-image): Free online image to PDF converter: combine JPG, PNG and WebP images into one PDF in order, with A4 or image-sized pages. Processed locally, no upload.
- [Compress Image](https://qilingtools.com/en/image/compress): Free online image compressor: batch compress JPG, PNG and WebP with adjustable quality and a max size, showing the before and after sizes. Runs locally.
- [Resize Image](https://qilingtools.com/en/image/resize): Free online image resizer: batch resize by pixel width and height or by percentage with the aspect ratio locked. JPG, PNG and WebP, processed locally.
- [Convert Image](https://qilingtools.com/en/image/convert): Free online image converter: batch convert JPG, PNG, WebP, GIF and BMP images to JPG, PNG or WebP. Processed locally, no upload.
- [Watermark Image](https://qilingtools.com/en/image/watermark): Free online image watermark tool: batch add text watermarks with position, tiling, opacity, size and color settings. Processed locally, no upload.
- [Stitch Images](https://qilingtools.com/en/image/stitch): Free online image stitcher: join screenshots or photos vertically or horizontally into one long image, with gap and background options. Processed locally.
- [Remove Background](https://qilingtools.com/en/image/remove-bg): Free online background remover: AI finds people, products and animals and cuts the background to a transparent PNG, or swaps in a white, red or blue backdrop.
