Skip to content

Pick colors from any image

Click a pixel to read its HEX, RGB and HSL codes, and copy the image’s eight dominant colours as a palette.

or drop it anywhere
Open from your cloud

Tip: your phone's file picker also lists Dropbox and Google Drive when their apps are installed.

No upload · runs 100% in your browser
A coffee mug with a colourful paisley pattern on a blue background. Rings mark the spots that were clicked, and each links to its colour code: #D8B386, #5387AF, #CF7F76, #544974.

Reading a colour off your image

  1. 1

    Aim with the loupe

    Move the pointer over the picture, or hold a finger on it, and a magnifier shows an 11 × 11 pixel grid around that spot with the centre pixel’s HEX code.

  2. 2

    Click to pick

    The HEX value lands on your clipboard immediately. The Picked color panel adds the matching rgb() and hsl() strings, each with its own Copy button.

  3. 3

    Keep a shortlist

    Your last eight picks stay as swatches under Your picks. Click one to bring its three codes back into the panel.

  4. 4

    Take the palette

    Dominant colors lists up to eight colours with the share of the picture each one covers. Copy all HEX codes puts them on a single line, separated by spaces.

Pixel-exact aiming

The loupe enlarges each pixel twelve times, so you can land on one dot of a thin line or a single anti-aliased edge.

Works from the keyboard

Focus the image, move the target with the arrow keys (Shift jumps 10 pixels) and press Enter or Space to pick.

Same palette every time

The palette comes from a fixed sample of the image, so opening the same file again gives the same eight colours in the same order.

Sampling reads pixels, not files

The picker works on the copy of the image your browser decoded for this tab, and it produces no download: the only thing that leaves the page is a code you choose to copy.

Questions & answers

Why does a palette colour not appear anywhere in my image?

Each palette swatch is the average of a cluster of similar pixels (k-means), not a single sampled pixel. On a photo with gradients, that average can sit between real values. To get a colour that exists exactly, click the pixel itself.

How many colours does the palette show?

Up to eight, sorted by how much of the picture they cover. An image with fewer distinct colours gives fewer swatches; a red logo on a transparent background produced a single swatch at 100%.

What happens with transparent pixels?

Fully transparent pixels are left out of the palette. If you click a partly transparent pixel, a note tells you how transparent it is and the codes show its colour without the transparency.

Which code should I paste into CSS?

Any of the three. CSS accepts #RRGGBB, rgb() and hsl(). HSL is the handiest when you want variations: keep the hue and change only the lightness to get a darker or lighter shade of the same colour.

Can I pick colours without a mouse?

Yes. Tab to the image, move the target with the arrow keys (hold Shift for 10-pixel steps) and press Enter or Space. On a touch screen the loupe follows your finger, and lifting it picks.

Example: the palette of a dusk landscape

Our 1200 × 800 test picture is an illustrated lake at dusk: violet sky, a band of orange at the horizon, dark pines in the foreground. Opening it gave this palette, along with the centre pixel’s values in the Picked color panel.

Dominant colours measured on sample-landscape.jpg
SwatchShare of the imageWhere it comes from
#38325232%deep violet of the upper sky and water
#5F486A25%mid-purple hills and reflections
#13111F12%the near-black hillside and pines
#7A5C7A10%distant mountains
#A371809%pink haze above the hills
#C18B825%soft clouds
#D17E694%orange glow
#E4A57B3%the brightest strip at the horizon

The centre pixel read #6A4B6A, rgb(106, 75, 106) and hsl(300, 17%, 35%). Notice that the two smallest swatches carry most of the mood: a palette sorted by area tends to open with background tones, so accent colours usually sit near the end of the list.

Why a picked value can surprise you

  • JPEG noise: compressed photos vary from pixel to pixel even in flat areas. Use the loupe to check the neighbourhood, or take the palette swatch, which smooths that variation out.
  • Colour profiles: the browser converts a photo with an embedded profile, such as the Display P3 images many phones save, to sRGB before the picker reads it. An app that reports the raw file numbers can differ by a few units.
  • Large images: the palette is computed from a preview copy at most 1600 pixels on its long edge, sampling up to 24,000 pixels. That is plenty for eight colours, but a tiny detail may not get a swatch of its own, so click it directly.

To match colours inside a layered design, the Pro editor’s eyedropper can sample a single layer or the merged image. Our guide to picking colours covers building a consistent palette from a photo.

Learn more