Image Color Picker
Open or paste an image, then click any pixel to get its HEX, RGB and HSL code. A magnifier helps you aim, and the dominant colors become a palette.
Drop an image here or browse
JPG, PNG, WebP, AVIF, GIF, BMP, SVG · or paste a screenshot
Open another image or drop it here
Click to pick a color; the magnifier shows the pixel under the pointer. Arrow keys move one pixel and Enter picks.Touch and slide to aim with the magnifier, then let go to pick. The arrows below fine-tune by one pixel.
Picked color
No color picked yet. Click or tap the image; the magnifier shows exactly which pixel you will get.
Contrast with white text · with black text (4.5:1 passes WCAG AA)
Fine-tune the pick
One pixel per tap ·
Picked colors
Colors you pick collect here, saved on this device only.
Open these colors as a palette →Useful? with a designer friend.
Why use an image color picker?
Matching a color by eye is guesswork: two blues that look alike on screen can be far apart in code. An image color picker reads the exact value stored in the image, so you can reuse a logo's brand color, match a website to a photo, pick paint or thread to match a picture, or build a palette from a mood board. This one works on phones as well as computers, shows a magnifier so you hit the pixel you mean, and opens the image only in your browser.
How to pick a color from an image
- Open an image: drop it on the box, tap to choose a photo, paste a screenshot with Ctrl+V, or press Try a sample image.
- Move over the image and watch the magnifier, then click (or touch, slide and let go) to pick the color in its center square.
- Copy the HEX, RGB, HSL, HSV, CMYK or OKLCH code. Every pick is added to Picked colors.
- Check Dominant colors for the image's palette, then copy it, download it as a PNG or open it in the palette generator.
Every color code you can get from a pixel
Each pick gives the same color in six notations. As a worked example, the sun in the sample image is one flat color. Picked with any sample size, it reads:
| Format | Sample sun | Where you'd paste it |
|---|---|---|
| HEX | #ffcf40 | CSS and HTML, Figma, Canva, Photoshop, brand guides |
| RGB | rgb(255, 207, 64) | CSS, image editors, Office color dialogs |
| HSL | hsl(45, 100%, 63%) | CSS; easy to make lighter or darker by hand |
| HSV / HSB | hsv(45, 75%, 100%) | The color pickers of Photoshop, Figma and most apps (called HSB there) |
| CMYK | cmyk(0%, 19%, 75%, 0%) | A starting point for print; ask your printer for exact values |
| OKLCH | oklch(87.3% 0.16 89.3) | Modern CSS and design systems; perceptually even steps |
HEX and RGB are the same three numbers (red, green and blue from 0 to 255) written in base 16 and base 10: ff is 255, cf is 207 and 40 is 64. The readout also names the color, gives the closest of the 148 CSS color names and the closest Tailwind CSS color, and shows its contrast with white and black text. This yellow reaches 14.25:1 with black text, so dark lettering on it is easy to read. For other formats or a full contrast check against any background, open the pick in the color converter.
One pixel or an average? Choosing the sample size
A single pixel is exact, but in a photo it may not be the color you see. Most JPEG photos store color at half resolution (one color sample for each 2 × 2 block of pixels, called 4:2:0 chroma subsampling), compression adds faint noise, and camera sensors add grain. Averaging a small square evens that out, like the "sample size" setting of an eyedropper in photo editing software. The magnifier outlines exactly which pixels will be averaged.
| Sample | Best for |
|---|---|
| 1 pixel | Logos, icons, flat illustrations, pixel art and screenshots of apps or websites at 100% zoom |
| 3 × 3 average | Most photos: smooths JPEG noise but stays local |
| 5 × 5 average | Grainy, low-light or heavily compressed photos, and textures such as fabric or wood |
| 11 × 11 average | The overall tone of an area: a patch of sky, skin, a wall or a painted surface |
Pixels at the edge of a shape are usually a blend of the two colors on either side (anti-aliasing), so pick well inside the area you want. Fully transparent pixels are skipped, and a semi-transparent one is shown with its alpha, as an 8-digit HEX code and an rgba() value.
How the dominant colors are found
Dominant colors summarize the whole image in 3 to 10 swatches, with the share of the picture each one covers. The tool works it out in four steps, entirely in your browser:
- It reads up to 40,000 evenly spread pixels of the image and leaves out transparent ones.
- It counts them into a color histogram, so near-identical pixels are handled together.
- It groups the colors into the number of clusters you chose with k-means, measuring similarity in OKLab, a color space built so that equal distances look equally different to the eye.
- Each swatch is the average of the real pixels in its cluster, and its percentage is that cluster's share of the image. A fixed starting point means the same image always gives the same palette.
Raise the count to catch small accent colors; lower it to see the main moods. A white or plain background often takes the top spot in product photos, so crop the image to the subject first if you only want its colors. The palette then copies as HEX codes or CSS custom properties, saves as a PNG, or opens in the color palette generator, where you can lock the colors you like, add harmonious ones and check contrast and color blindness.
Pick colors from your screen or a screenshot
In Chrome, Edge and Opera on a computer, Pick from screen turns the pointer into the browser's own eyedropper (the EyeDropper API, available since Chrome 95): click anywhere on the screen, press Esc to cancel. Safari, Firefox and phone browsers don't support it, so the button only appears where it works. Everywhere else, a screenshot does the same job:
- Windows: press Win+Shift+S, drag over the area, then press Ctrl+V on this page.
- Mac: press ⌘+Ctrl+Shift+4 to copy an area to the clipboard, then ⌘+V here.
- iPhone and Android: take a screenshot as usual, then tap the box above and choose it from your photos.
Picking colors on iPhone and Android
The picker is built for touch screens. Tap the box to choose a photo or screenshot from your library, or take a new photo. Then touch the image and slide your finger: the magnifier floats above your fingertip, so the pixel you are aiming at stays visible, and the color in its center square is picked when you lift your finger. The code appears straight under the image with a Copy HEX button, and the arrow pad below moves the pick one pixel at a time.
To take a color from another app or a web page, screenshot it first: on an iPhone with Face ID press the side button and volume up together (side or top button and Home on older models), and on most Android phones press power and volume down. Then open the screenshot here. Every pick is saved in Picked colors on the phone, so you can collect a few and copy them all at once.
Other ways to find a color code
If you already have a design app open, its own eyedropper does the same job. Where each one hides:
| Where | How to get the code |
|---|---|
| Photoshop | Eyedropper tool (I), click the image, then click the foreground color to see its HEX value. For photos, set Sample Size to 3 by 3 Average in the options bar. |
| GIMP | Color Picker tool (O), click the image; its info window lists the values, including HEX. |
| Chrome, Edge | Open DevTools (F12), click any color square in the Styles pane, then the eyedropper icon, and click on the page. |
| Firefox | Open the Inspector (F12) and click its eyedropper button; clicking the page copies the HEX code. |
| Mac | Digital Color Meter in Applications › Utilities. Choose View › Display Values › as Hexadecimal and set the menu to Display in sRGB, then ⇧⌘C copies the color under the pointer. |
| Windows | Microsoft PowerToys Color Picker: press Win+Shift+C and click anywhere on screen to copy the HEX code. |
This page needs no install or account, works the same on a phone, and adds what the built-in eyedroppers lack: averaged samples, every format side by side, a saved list of picks and the image's whole palette.
Why a code may not match the original design
The picker reports exactly what is stored in the image, which isn't always what the designer chose. Saving as JPEG shifts colors slightly. Photos taken in a wide-gamut profile such as Display P3, the default on recent iPhones, are converted to sRGB, the color space of HEX and RGB codes, so the most saturated colors read a little duller than on a wide-gamut screen. Screenshots of a zoomed page mix neighboring pixels. Display settings such as Night Shift, True Tone or a blue-light filter change how colors look on your screen but not the stored values. For a company's official colors, the brand guidelines are the source of truth; a picked value is a close match.
Common mistakes
- Picking on an edge. Edge pixels are blends; zoom in with the magnifier and pick inside the shape.
- Using single pixels on photos. Noise makes neighboring pixels differ by several units; a 3 × 3 average gives a steadier value.
- Reading the percentages as importance. They measure area, so a small red logo can matter more than a large gray wall.
- Confusing HSL with HSB. Design apps show HSB (HSV); CSS's hsl() is different, so copy the format your app expects.
More free image tools that run on your device: compress an image below a size limit, convert it between JPG, PNG and WebP, or turn iPhone photos into JPGs with HEIC to JPG.
Frequently asked questions
How do I find the color code of an image?
Open the image here (drop it on the box, browse for it or paste a screenshot), then click or tap the spot you want. Its HEX, RGB, HSL, HSV, CMYK and OKLCH codes appear at once, each with a Copy button, and the magnifier shows exactly which pixel you are on.
How do I get the HEX code of a color in a photo on my iPhone or Android phone?
Open this page on the phone, tap the box and choose the photo or screenshot, then touch the image and slide your finger: a magnifier appears above your finger and the color under its center square is picked when you let go. Tap Copy next to the HEX code. The arrow buttons under the image move the pick one pixel at a time.
Can I pick a color from my screen, not just from an image?
Yes, in Chrome, Edge and Opera on a computer: Pick from screen opens the browser's eyedropper (the EyeDropper API), and you click anywhere on the screen to pick that color. Safari, Firefox and phone browsers don't offer it yet; take a screenshot instead and paste it here with Ctrl+V (Command+V on a Mac).
How do I extract a color palette from an image?
Open the image and look at Dominant colors. The tool groups the image's pixels into 3 to 10 clusters of similar color (k-means clustering in the OKLab color space) and shows each cluster's average color with its share of the image. Change the number of colors, copy them as HEX codes or CSS variables, download a PNG, or open them in the Color Palette Generator.
Why is the color I picked different from what I expected?
Usually the image itself differs: JPEG compression shifts colors and adds noise, edges are blended with their neighbors, and screenshots of a zoomed page mix pixels. For photos, use a 3 × 3 or 5 × 5 average instead of a single pixel. Images saved in a wide-gamut profile such as Display P3 are converted to sRGB, the color space HEX codes use, so the most saturated colors come out slightly duller.
What is the difference between HEX, RGB and HSL?
They are three ways to write the same screen color. RGB gives the amounts of red, green and blue from 0 to 255; HEX writes those same three numbers in base 16, so #2a9d8f is 42, 157, 143; HSL describes the color by hue angle, saturation and lightness, which is easier to adjust by hand. CSS accepts all three, and design apps such as Figma and Canva take HEX.
Is my image uploaded anywhere?
No. Your browser opens and reads the image on your device and it is never sent anywhere. The list of picked colors and your settings are saved in this browser's local storage so they are there next time; the Clear button empties the list.
Which image formats can I use?
JPG, PNG, WebP, AVIF, GIF (its first frame), BMP and SVG, plus screenshots pasted from the clipboard. iPhone HEIC photos open in Safari; in other browsers, convert them first with the free HEIC to JPG converter.
How do I get the color code of a pixel on a Mac or Windows PC?
On a Mac, open Digital Color Meter (Applications › Utilities), choose View › Display Values › as Hexadecimal and press Shift-Command-C to copy the color under the pointer. On Windows, Microsoft PowerToys' Color Picker (Win+Shift+C) copies the HEX code of any spot you click. Without installing anything, take a screenshot and paste it here, or use Pick from screen in Chrome or Edge; the magnifier and arrow keys then let you land on one exact pixel.
Can I get the average color of an image?
Yes. Under Dominant colors, the average color is the mean of the image's opaque pixels, read from up to 40,000 of them spread evenly over the picture (every pixel of a smaller image). For the average of a small area instead, set the sample size to 5 × 5 or 11 × 11 and pick in the middle of that area.
Does it work with transparent PNG images?
Yes. Transparent areas show a checkerboard. A semi-transparent pixel is shown with its alpha as an 8-digit HEX code (#rrggbbaa) and an rgba() value. Fully transparent pixels have no color, so they can't be picked and are left out of the dominant colors.
How do I use a picked color in CSS, Figma or Canva?
Copy the HEX code and paste it into the color field of Figma, Canva, Photoshop, Google Slides or Word. In CSS you can paste the HEX, rgb(), hsl() or oklch() value exactly as copied, for example color: #2a9d8f.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.