Image color picker, free, no upload
Color picker from image
To pick a color from an image, open the image here, move over it and click the pixel you want. A magnifier shows the exact pixel, and its HEX, RGB, HSL and HSV codes appear ready to copy, next to a palette of the image's main colors. The image is read on your device and is never uploaded.
- Exact pixel values, in sRGB
- HEX, RGB, HSL, HSV and a palette
- Image never leaves your device
Drag over the image to get the average color of that area.
This browser changes the pixel values it hands to web pages, a protection against tracking, so the codes here can be slightly off. For exact values, allow this page to read canvas data, or open the page in another browser.
Picked color
Click or tap a pixel of the image. Its color and codes appear here.
Values are 8-bit sRGB. CMYK is a plain conversion with no print profile, so treat it as an approximation.
Picked colors
Kept only while this page is open.
Contrast of your last two colors
Color palette from this image
The main colors by median cut, from up to about 40,000 pixels of the image. Tap a color to copy its HEX code. The same image always gives the same palette.
How to pick a color from an image
Open an image
Drop it on the box, choose a file, or paste a screenshot with Ctrl + V. JPG, PNG, WebP, AVIF, GIF, BMP, SVG and HEIC files open, and nothing is uploaded.
Point at the color
Move over the image. The magnifier shows an 11 by 11 pixel grid with the pixel under the pointer in the middle. Scroll or pinch to zoom, and use the arrow keys to move one pixel at a time.
Click or tap to pick
The color appears as a large swatch with its HEX, RGB, HSL, HSV and CMYK codes. On a phone, slide your finger and lift it to pick: the magnifier sits above your finger.
Copy the code or the palette
Press Copy next to the code you need. Under the image, the palette lists the 5 to 8 main colors, to copy or to save as a PNG strip or a text file.
What an image color picker is for
An image color picker, also called a color finder, reads the color stored in one pixel of a picture and writes it as a code you can paste into another app. It answers questions like these: which blue is this logo, what is the HEX code of that button in a screenshot, and which colors make up this photo.
Each pick shows a large swatch, the codes, and the nearest of 71 common color names, such as Teal or Coral, as a rough label. The colors you pick stay in a short list on the page while it is open, and Copy all puts their HEX codes on your clipboard. Nothing is stored after you close or reload the page.
Once you have the color, the other tools can use the same photo: make its colors stronger or softer with adjust saturation, tune light and color together in adjust photo, take the color out with black and white, swap it for another color with change image color, or clear a plain backdrop of that color with remove background. To read the camera, date and place stored in a photo instead of its colors, use the image metadata viewer.
HEX, RGB, HSL, HSV and CMYK: which color code to copy
| Code | The same color | Where it is used |
|---|---|---|
| HEX | #1E90FF | Web pages, CSS and most design apps. Six digits in base 16: two each for red, green and blue. |
| RGB | rgb(30, 144, 255) | CSS, image editors, slides and office apps. Red, green and blue, each from 0 to 255. |
| HSL | hsl(210, 100%, 56%) | CSS. Hue as an angle, then saturation and lightness: change the last number for a lighter or darker shade. |
| HSV | hsv(210, 88%, 100%) | The color wheels of image editors, where it is also called HSB. Hue, saturation and brightness. |
| CMYK | cmyk(88%, 44%, 0%, 0%) | A rough guide for print. Real print values depend on the printer, ink and paper. |
All five codes describe the same color, here the same blue pixel. HEX and RGB are the ones a browser reads straight from the image. HSL and HSV are worked out from them, as the CSS Color specification defines HSL, with the hue rounded to a whole degree and the rest to whole percent.
CMYK is marked as an approximation on purpose. Print colors depend on the ink, the paper and the printer's own color profile, and we apply none of those: the numbers are the plain arithmetic conversion, good as a starting point and not as a print specification.
How the color palette from an image is made
The palette is the 5 to 8 colors that cover most of the image, so the tool also works as a color palette generator from an image, and the color palette from image page opens with the palette first. We sample up to about 40,000 real pixels on a fixed grid, group them in a color cube, and split the fullest group at its middle again and again until there is one group for each color you asked for. That method is called median cut. Each palette color is the average of its group, shown with the share of the image the group covers.
Nothing in it is random, so the same image always gives the same palette in the same order. For logos, charts and screenshots, where large areas have one flat color, the palette shows those colors exactly. For photos the colors are averages, so a palette color can sit between the pixels it stands for. Pixels that are mostly see-through are left out.
You can copy one color, the HEX list or a block of CSS variables, and save the palette as a PNG strip with the codes written on it or as a text file with HEX, RGB, HSL and the CSS variables. The page shows the size of the PNG before you save it, and there is no watermark on it.
Why a color code can differ from what you expect
The values are sRGB. Every code here is 8-bit sRGB, the color space of web pages and of most screens. For a JPG, PNG or WebP without a color profile, or with an sRGB one, the values are the numbers stored in the file. A file with a wider profile, such as Display P3 from a recent phone or Adobe RGB from a camera, is converted to sRGB by your browser before any page can read it, and the tool names the profile when it finds one.
JPG changes pixels. JPG compression stores an approximation, so an area that looks flat holds slightly different pixels, and two picks a few pixels apart can differ by a step or two. Choose Average an area and drag over the area to get one steady value, or pick from a PNG of the same picture.
Edges are blends. The rim of a letter, line or shape is drawn with in-between colors. Zoom in and pick from the middle of the shape, not its edge.
See-through pixels. A fully see-through pixel has no color to read, and the tool says so. A partly see-through one can come back a step or two off, because browsers keep such colors multiplied by their opacity. For those pixels we also show the HEX code with its opacity.
Privacy protections. Some browsers and privacy add-ons change the pixel values they hand to web pages by a step or so, to make tracking harder. The tool tests for that with a known pattern each time it opens an image, and warns you when the values come back changed.
Very large images. An image over 16 megapixels is read as a copy of about 16 megapixels, so its values are those of the smaller copy, and the page tells you when that happens. SVG drawings are read at 2048 pixels on their longest side.
Pick a color from anywhere on your screen
Where the browser has an eyedropper of its own, the button Pick from anywhere on your screen appears next to the image picker. It opens the browser's EyeDropper: you move a magnifier over anything on your display, inside or outside the browser window, and click. The page receives only the one color you clicked, never a picture of your screen.
Chrome, Edge and Opera on a computer have it. Firefox, Safari and phone browsers did not when we wrote this, and the button is hidden wherever it would not work. There, take a screenshot and paste it here with Ctrl + V, or Cmd + V on a Mac: it opens like any other image.
Check the contrast of two picked colors
After two picks, the tool shows the contrast ratio of your last two colors, from 1:1 for the same color to 21:1 for black on white, with a sample of each color as text on the other. It also says which accessibility levels the pair reaches: WCAG level AA asks for at least 4.5:1 for normal text and 3:1 for large text, and level AAA for 7:1 and 4.5:1. Large text means at least 18 point, or 14 point bold. The ratio is cut to two decimals and never rounded up, so a pair just under a limit is not shown as passing.
Questions
How do I find the HEX code of a color in an image?
Open the image in the color picker above and click the color. Its HEX code, such as #1E90FF, appears next to the swatch, and Copy puts it on your clipboard. Zoom in or use the arrow keys when you need one exact pixel.
How do I get the RGB values of a color from an image?
Click the color in the image and read the RGB row, for example rgb(30, 144, 255). The three numbers are the red, green and blue of that pixel, each from 0 to 255, in sRGB. The same click also gives the HEX, HSL and HSV codes and an approximate CMYK.
How do I get a color palette from an image?
Open the image and look under it: the palette lists its 5 to 8 main colors with their HEX codes and the share of the image each one covers. Copy one color, the whole list or a block of CSS variables, or save the palette as a PNG strip or a text file. The same image always gives the same palette.
Is this image color picker free, and is my image uploaded?
It is free, with no sign-up, no watermark and no daily limit, and your image is not uploaded. Your browser opens the file and reads its pixels on your device. A line under the result counts the requests the page has sent since you added the image, so you can check that for yourself.
Why does the color code not match what I expected?
Usually because of how the image was saved. JPG compression changes pixels slightly, the edges of text and shapes are blends of two colors, and a file with a wide color profile, such as Display P3 from a phone, is converted to sRGB by the browser before it can be read. Zoom in and pick from the middle of a flat area, or choose Average an area and drag over it.
Can I pick a color from a screenshot or from anywhere on my screen?
Yes. Paste a screenshot with Ctrl + V, or Cmd + V on a Mac, and pick from it like any image. In Chrome, Edge and Opera on a computer, the button Pick from anywhere on your screen opens the browser's own eyedropper, which reads any pixel on your display, even outside the browser window.
How do I pick a color from an image on iPhone or Android?
Open this page in your phone's browser, tap Choose an image and pick a photo or screenshot. Touch the image and slide: the magnifier sits above your finger so you can see the pixel under it, and the color is picked when you lift your finger. Pinch with two fingers first to zoom in on small details.
What is the difference between HEX, RGB, HSL and HSV?
They are four ways to write the same color. HEX and RGB give its red, green and blue amounts, HEX in base 16 and RGB in plain numbers from 0 to 255. HSL and HSV describe it as a hue angle plus saturation and lightness or brightness, which makes it easier to build lighter and darker versions of one color.
Sources: EyeDropper API (MDN), Understanding Success Criterion 1.4.3: Contrast (Minimum) (W3C), Understanding Success Criterion 1.4.6: Contrast (Enhanced) (W3C), CSS Color Module Level 4 (W3C), Named colors in CSS (MDN)