How to pick a color from an image
- 1.
Load the image
Drop a photo, click to choose one, or paste a screenshot with Ctrl+V.
- 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.
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.
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
| Task | How to do it |
|---|---|
| Logo color for a website or CSS | load 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 photo | set 5-6 colors in “Dominant colors” and copy all HEX codes with one button |
| Matching paint or fabric | take several samples from an evenly lit area and compare them; remember that a photo depends on light and camera settings |
| Color from another app | the 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?
+
Can I pick a color from another website or app?
+
How many colors can the palette have?
+
Why do two clicks next to each other give different colors?
+
Is my image uploaded?
+
Does it work on a phone?
+
Updated: