EN

Image Color Picker

Drop in an image, click anywhere on it to get that color's HEX, RGB and HSL code, and see the main colors of the whole image as a ready-made palette.

🔒 Your image is processed only in this browser and is never uploaded.

Picked color
#6D46D3
HEX#6D46D3
RGBrgb(109, 70, 211)
HSLhsl(256.6, 61.6%, 55.1%)
Image palette

How to use it

  1. Drop an image on the box, click to choose a file, or paste a screenshot (Ctrl/Cmd+V).
  2. Click or tap the image: the magnifier shows the exact spot and the color appears on the right.
  3. Below it, the image palette lists its main colors and how much of the picture each one covers. Choose 4, 5, 6 or 8 colors.
  4. Copy any code, copy the whole palette, or open it in the palette generator.

Your image never leaves your browser

The file is read and drawn on a canvas inside this page. There is no upload, no server and no storage: closing the tab removes it. That makes it safe for unreleased designs and private photos.

How the palette is extracted

The image is scaled down and its pixels are grouped by similar color with k-means clustering in OKLab, a color space where distances match what the eye sees. Each palette color is the average of its group, so it is a real blend of colors from your image, and the percentage shows how much of the image it covers. A clicked color averages a 3×3 pixel spot so a single noisy pixel does not mislead you.

Next steps: check text on your new colors with the contrast checker or build a gradient from them.

Frequently asked questions

Is my image uploaded anywhere?

No. The image is processed with your browser's canvas on your device. Nothing is sent to SwatchNest or anyone else.

How do I get the hex code of a color in a photo?

Load the photo, then click the spot you want. The HEX, RGB and HSL codes of that spot appear on the right with copy buttons.

Why is the picked color slightly different from what I expected?

Photos have noise and compression, so neighbouring pixels differ. The picker averages a tiny 3×3 area; zoom the magnifier on a flat area for the most typical color.

Related tools