Get the color code from any image.
Upload or paste a picture, click any pixel, and copy its HEX, RGB, HSL or CMYK code. The main colors of the image are detected automatically, with how much of the picture each one covers.
Drop an image here or browse files
or paste a screenshot with Ctrl+V / Cmd+V
How to get the color code from a picture.
Add your image
Drop a JPG, PNG, WebP or other image onto the box, or tap it to choose one from your phone. To pick a color from a website, app or PDF, take a screenshot and paste it in with Ctrl+V (Cmd+V on Mac).
Pick a pixel
Move over the image. A round magnifier shows an 11 x 11 pixel grid around your pointer, with the sampled pixel outlined in the middle, and its hex code underneath. Click or tap to pick. On a phone, drag your finger and lift it on the color you want.
Copy the code
Click the HEX, RGB, HSL or CMYK row to copy that format. Every color you pick is saved in a row of chips below, so you can collect a few and copy them all at once. The main colors panel copies the whole palette as CSS variables.
Which color code do you need?
HEX - websites, Canva, Figma
Six characters after a #, like #E63946. It is the format almost every design app and website builder asks for: Canva, Figma, Photoshop, WordPress themes, Shopify, and CSS. If you are not sure which code to use, use HEX.
RGB - code and Office apps
Three numbers from 0 to 255 for red, green and blue, like rgb(230, 57, 70). PowerPoint, Word and Excel ask for these three numbers in their custom color dialog, and many programming libraries take RGB directly.
HSL - making shades
Hue in degrees around the color wheel, then saturation and lightness in percent, like hsl(355, 78%, 56%). It is the easiest format to adjust by hand: keep the hue and change the lightness to get a darker or lighter shade of the same color.
CMYK - print, as a starting point
Cyan, magenta, yellow and black ink percentages. The value here is a straight mathematical conversion from RGB. Real print results depend on the printer's color profile and paper, so treat it as a starting point and ask your print shop for a proof when the color matters.
What people use an image color picker for.
Matching a brand color from a logo
A client sends a logo as a JPG and no brand guide. Open the logo, set Sample to 1 px, and click the middle of a solid area, away from the edges where colors blend into the background. Compression can shift JPG colors by a few values, so if the logo exists as a PNG or SVG anywhere, use that file instead for the exact code.
Getting colors from a website or app
Screenshot the page and paste it here. Screenshots keep the exact on-screen pixels, so the hex code matches the site's CSS. This is handy for matching a button color in a presentation, or for building a slide deck in a client's colors.
Building a palette from a photo
A sunset, a room or a product photo often has a color scheme worth reusing. The main colors panel groups the image into 4 to 10 colors and shows each one's share of the picture, so you can see which color dominates and which ones are accents. Copy them as CSS variables or click any swatch to see its full set of codes.
Paint, fabric and decor matching
Photos of a wall or a fabric pick up the light in the room, so the code will be close but rarely exact. Use "5 x 5 avg" to smooth out texture and noise, take the photo in daylight, and use the code to search a paint brand's color matcher rather than as a final answer.
How the color is read.
The image is drawn once onto an HTML canvas at full size (up to 4096 pixels on the longest side), and the browser hands back the red, green and blue value of every pixel. When you click, the tool reads the pixel under your pointer, or the average of the 3 x 3 or 5 x 5 block around it, and converts those three numbers into HEX, HSL and CMYK. The color name is the closest of the 148 named CSS colors, measured by distance in RGB.
Once you have a code, the next step is often doing something with it. To see a color's opposite, the hex color inverter opens straight from the "Find the inverted color" link under every picked color. To recolor the whole picture rather than read it, the hue shifter rotates every color around the wheel.
Picking colors across several screenshots
The picker works on one image at a time. If the colors you need are spread over several screenshots, join them into one image first with the JPG joiner, then pick every color from the combined picture in one go. For screenshots of interfaces and logos, merge them as PNG instead, because PNG is lossless and keeps every pixel's color exact, while JPG compression can shift colors slightly near edges and text.
Why the same color can show different codes
Three things change the numbers. JPG compression stores colors in 8 x 8 blocks and smooths small differences away, so a flat color can come back as several close codes. Lighting and camera processing change real-world colors in photos. And wide-gamut photos (Display P3, common on newer phones) are converted to sRGB by the browser, the color space that hex codes and CSS use. For a flat graphic, pick from a PNG; for a photo, use the averaged sample.
Frequently asked questions.
How do I find the color code of something in an image?
Drop the image onto the box above, or paste a screenshot with Ctrl+V (Cmd+V on Mac). Move over the image and a magnifier shows the exact pixel under your pointer. Click or tap to pick it. The color code appears as HEX, RGB, HSL and CMYK, and each one copies with a single click.
How do I get the hex code from an image?
Pick the color, then click the HEX row to copy it, for example #1E90FF. A hex code is the same color written as three pairs of base-16 digits: the first pair is red, the second green, the third blue. #1E90FF means red 30, green 144, blue 255, which is exactly what the RGB row shows.
Why do I get slightly different codes when I click near the same spot?
Photos are noisy. JPG compression, camera sensor grain and soft edges mean neighboring pixels often differ by a few values. Set Sample to "3 x 3 avg" or "5 x 5 avg" and the tool averages 9 or 25 pixels around your click instead of reading one. That gives a steadier code for the color you actually see. Keep "1 px" for screenshots, logos and flat graphics where every pixel is exact.
How does the tool find the main colors of an image?
It shrinks a copy of the image to about 10,000 pixels and groups similar colors with k-means clustering. Each group becomes one swatch, and the percentage under it is how much of the image that color covers. Choose 4, 6, 8 or 10 colors. The result is the same every time for the same image, so you can come back and get identical codes.
Is my image uploaded anywhere?
No. The image is read into a canvas inside your browser and every color is calculated on your device. Nothing is sent to a server, so it is safe for unreleased designs, client work or personal photos. Close the tab and the image is gone.
Will the color code match what I see in Photoshop or Figma?
For screenshots and web images, yes: they are already sRGB, which is the color space hex codes use. Photos from newer iPhones and some cameras are saved in Display P3, a wider color space. Browsers convert those to sRGB when drawing them, so the code can differ by a few values from an app that keeps P3. If you need a web or CSS color, the sRGB value here is the one to use.
Can I pick a color from a website or a PDF?
Take a screenshot (Windows + Shift + S on Windows, Cmd + Shift + 4 on Mac, or the usual buttons on a phone) and paste it straight into this page with Ctrl+V or Cmd+V. Screenshots are lossless PNG on most systems, so the code you pick is the exact color that was on screen.
What image formats can I use?
Any format your browser can open: JPG, PNG, WebP, GIF, BMP, SVG and AVIF. HEIC photos open in Safari but not in most other browsers. Very large images (over 4096 pixels on the longest side) are scaled down once when loaded to keep memory use low, which does not change which colors are in them.