English

Color Palette from Image & Image Color Picker

Get the dominant colors and HEX codes of any photo. Free, private and runs in your browser.

Advertisement

About the Color Palette from Image

Upload a photo, logo or screenshot and this tool finds its dominant colors and builds a palette of 4 to 12 swatches with HEX and RGB codes. Click on any point of the image to pick that exact pixel color, like an eyedropper. Copy single colors, the whole palette or ready-made CSS variables for your website or design project.

Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.

How to use the Color Palette from Image

  1. Drop an image or click to choose one.
  2. Pick how many colors you want in the palette.
  3. Click a swatch to copy its HEX code, or click the image to pick an exact color.
  4. Use Copy or Copy as CSS variables to copy the full palette.

How is the palette calculated?

The image is scaled down and its pixels are grouped with the median-cut algorithm, which repeatedly splits the colors along the channel (red, green or blue) with the widest range. Each group's average becomes one swatch, ordered from the most to the least common color.

Using the palette in design

Use the most common color as a background or base, a strong accent color for buttons and links, and lighter or darker swatches for borders and text. Check text contrast with our color converter to keep your design readable.

Frequently asked questions

Can I get the color of a single pixel?

Yes. Click anywhere on the image preview and the exact color under the pointer appears with its HEX and RGB code.

Which image formats are supported?

JPG, PNG, WebP, GIF, BMP and other formats your browser can open.

Is my image uploaded?

No. The colors are calculated in your browser and the image never leaves your device.

Why are the colors slightly different from my design software?

The palette shows averaged colors of whole regions, so it can differ slightly from individual pixels. Use the pixel picker for exact values.

Related tools

Advertisement