Color picker from image
Click any pixel of a photo or screenshot for its HEX, RGB and HSL code, with a magnifier, and get the picture's main colours as a palette. Nothing is uploaded.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
or drop it here, or paste a screenshot with Ctrl+V (⌘V on a Mac). JPEG, PNG, WebP, HEIC and more, up to 50 MB. Nothing is uploaded.
How it works
Choose or drop a photo, a screenshot or any other picture, or paste a screenshot with Ctrl+V. It opens in your browser and nothing is uploaded. Move the mouse over it and a magnifier shows the pixels under the pointer, enlarged, with the colour code of the one in the middle. Click to pick it. On a phone, touch the picture and slide your finger: the magnifier sits above your finger, and the colour is picked when you lift it. With a keyboard, focus the picture, move the point with the arrow keys and press Enter.
Each colour you pick is shown as a HEX code, an RGB value and an HSL value, ready to paste into CSS, Figma, Canva or Word, with the matching or closest CSS colour name. Colours you pick are kept in a list on the page until you leave it, so you can collect several and copy them all at once. To read one pixel exactly, keep the sample at 1 pixel; to get the colour of a grainy or compressed area, pick a 3 × 3 or 5 × 5 average.
The palette groups every pixel by how alike the colours look (k-means clustering in the OKLab colour space) and shows each group as its most typical real colour, most common first. To turn a logo into a vector with those colours, use PNG to SVG; to cut the picture down to the part you need first, use Crop an image.
Questions
How do I find the HEX code of a colour in a picture?
Choose the picture, or paste a screenshot, then click or tap the spot you want. The magnifier shows the pixels under the pointer so you can hit the exact one. The page shows that pixel's HEX code, such as #1E90FF, with its RGB and HSL values, and a Copy button beside each.
How do I get a colour palette from an image?
Open the image and the palette appears under it: the picture's main colours, most common first, with the share of the picture each one covers. Choose from 2 to 12 colours. Every colour in the palette is the colour of a real pixel in the picture. Copy the HEX codes, copy them as CSS variables, or download the palette as a PNG.
Can it tell me the name of a colour?
Yes. Under each colour's codes, the page gives the CSS colour name it matches, such as steelblue, or else the closest one by how the colours look. Most colours in photos have no exact name, so the closest name is a guide rather than the same colour.
Why is the colour code a little different from my design file?
Saving as JPEG changes colours slightly, so a flat area can be a few steps off the colour it was drawn in, and neighbouring pixels can differ. Picking a 3 × 3 or 5 × 5 average evens that out. Colours are also read in sRGB, the colour space of the web: a photo with a wider colour profile is converted first, as a browser shows it.
Limits
Opens one image at a time, up to 50 MB and 100 megapixels. JPEG, PNG, WebP, GIF, BMP and AVIF work in current browsers, and so do iPhone HEIC photos: browsers other than Safari can't open HEIC themselves, so the page first loads a HEIC decoder (about 0.7 MB) from this site, and the photo still stays on your device. SVG drawings aren't read; their colours are in the file as text. An animated GIF or WebP gives the colours of its first frame.
Colours are read pixel for pixel up to about 16 megapixels. A larger photo is read from a smaller copy and the page says so, so each value is then the average of a few neighbouring pixels. Colours are given in sRGB, the colour space of the web. CMYK values for print depend on the printer's colour profile, so the page doesn't guess them. Brave, Firefox with “resist fingerprinting” and some extensions change the pixels a page reads back; the page checks for this and warns you when values may be slightly off.
The picture, the colours you pick and the palette stay on this page: nothing is kept, put in the page address or sent anywhere, and they are gone when you close the page.
Privacy
This tool runs entirely in your browser. The files you open and what you type are never sent to a server, and nothing is stored after you close the page. See the privacy page.
Related tools
PNG to SVG converter
Trace a PNG, JPG or WebP logo into a real vector SVG with clean shapes, in colour or black and white for Cricut cut files. Nothing is uploaded.
Crop and rotate an image
Crop a photo to a circle, a square, 16:9, any shape or exact pixels, and rotate or flip it. iPhone HEIC too, and nothing is uploaded.
Image converter: PNG, JPG, WebP, GIF, HEIC and TIFF
Convert PNG to JPG, WebP to PNG, animated WebP to GIF, PNG to WebP, AVIF and JFIF to JPG, HEIC photos, TIFF to JPG and JPG to TIFF, many at once. No upload.