Color Palette From Image: Main Colors

Get a color palette from image files in seconds. Upload a photo, artwork or screenshot, and the tool pulls out its main colors and shows them as swatches. Pick how many colors you want, then copy the HEX and RGB codes for your design.

Color Palette From Image

Dominant colors as HEX codes.

or drop an image here
Everything runs in your browser. Nothing you enter or upload is sent to a server.

How to use the Color Palette From Image

  1. Upload or drop an image.
  2. Choose how many colors to extract.
  3. Click any swatch to copy its HEX code.
  4. Export the palette in the format you need.

How it works

The image is shrunk to about 160 pixels and every pixel is grouped with the k-means clustering algorithm, which repeatedly moves k color centers to the average of their nearest pixels. Each final center is a palette color, sorted by how much of the image it covers.

Example

A beach photo might give #1E6FA8 (sea, 34%), #F2D3A0 (sand, 28%), #87C3E8 (sky, 20%) and two darker accents.

Frequently asked questions

Is my image uploaded?

No. All processing happens in your browser.

Why do I get slightly different colors each time?

Colors are averaged within clusters, so changing the number of colors changes them.

Can I use it for a brand palette?

Yes, extract colors from a logo or mood board image.

See also: Color Picker, HEX to RGB Converter.

Pull colors from a photo

How to use it

  1. Upload an image.
  2. Pick how many colors to extract.
  3. Review the swatches.
  4. Copy the HEX or RGB codes.

More questions

What does dominant color mean?

The colors that cover the most of the picture.

Can I pick a single pixel's color?

To pick the color of a single pixel, use the color picker tool.

Is my image uploaded?

No. Everything stays in your browser on your device.

Related tools: Color Palette Generator, Color Scheme Generator, Color Picker.