Skip to content
HNarzędzia
en
Categories

Image color picker - get HEX, RGB and HSL from a photo

Click the image to get the code of any pixel, or let the tool pull out a palette of the dominant colors. A system eyedropper can also grab colors from anywhere on your screen. The image never leaves your browser.

  • Free
  • No sign-up
  • Private
  • Runs locally

Drag & drop files here

or click to choose from your device

JPG, PNG, WebP, GIF · you can also paste (Ctrl+V)

How to pick a color from an image

  1. 1.

    Load the image

    Drop a photo, click to choose one, or paste a screenshot with Ctrl+V.

  2. 2.

    Click a color

    Click or tap a spot on the image. The loupe shows a magnified area and the exact pixel. On a phone, press and drag your finger.

  3. 3.

    Copy the code

    HEX, RGB and HSL codes appear next to the image with copy buttons. Recently picked colors are kept in a list.

  4. 4.

    Use the palette

    In “Dominant colors”, choose 5-10 colors extracted from the whole image and copy all HEX codes with one click.

HEX, RGB or HSL - which one to use?

The same color can be written in several ways, for example #336699, rgb(51, 102, 153) and hsl(210, 50%, 40%). HEX is the shortest form, used in CSS and in design tools such as Figma and Canva. RGB is handy in code and when you need transparency (rgba). HSL makes it easy to tweak hue, saturation and lightness, for instance to create a darker hover shade. For HSV, CMYK or OKLCH, use the color converter.

How the palette extraction works

The tool samples up to 40,000 pixels of the image, skips transparent ones and then runs the median cut algorithm: the set of colors is repeatedly split along the channel (R, G or B) with the widest spread until the requested number of groups is reached. Each group’s color is the average of its pixels, and its percentage share reflects how many pixels fall into it. On a photo with a plain background, the first color is usually the background.

Typical uses and common mistakes

TaskHow to do it
Logo color for a website or CSSload the logo as PNG and click the middle of a solid area, avoiding edges, where anti-aliasing mixes the color with the background
Palette from an inspiration photoset 5-6 colors in “Dominant colors” and copy all HEX codes with one button
Matching paint or fabrictake several samples from an evenly lit area and compare them; remember that a photo depends on light and camera settings
Color from another appthe screen eyedropper in Chrome or Edge, or a screenshot pasted with Ctrl+V

The most common mistake is sampling a shadow or a highlight: the same wall can differ by dozens of RGB units across one photo. The second is clicking right on the edge of an object. The “Picked colors” list keeps up to 14 recent samples, so you can compare several points and choose the most representative one.

Accuracy and limitations

You get the color of a specific pixel after the image is decoded. Images whose longer side exceeds 1800 px are scaled down to 1800 px for analysis, so one pixel in the tool may average several original pixels, and with fine details such as thin lines or text this can give an in-between color. In JPG files, neighbouring pixels can differ slightly because of compression, so click several points in the same area. Values are in sRGB, as the browser draws the image. A graphics program using a different color (ICC) profile may show slightly different numbers. The screen eyedropper (EyeDropper API) works in desktop Chrome and Edge; in other browsers, load a screenshot instead.

Frequently asked questions

How do I find the color code in a photo?

+
Load the photo and click the spot you are interested in. You will see its HEX, RGB and HSL codes, ready to copy.

Can I pick a color from another website or app?

+
In Chrome and Edge, use “Pick color from screen” (the system eyedropper). In other browsers, take a screenshot and paste it here.

How many colors can the palette have?

+
From 5 to 10. The slider changes the number live and each color shows its share of the image.

Why do two clicks next to each other give different colors?

+
Photos contain noise and JPG compression artefacts, so neighbouring pixels differ by a few units. Click several points in the same area and pick the most representative color.

Is my image uploaded?

+
No. All processing happens locally in your browser.

Does it work on a phone?

+
Yes. Press and drag your finger over the image; the loupe above your finger shows exactly which pixel you are on.

Updated: