Colour picker from an image
Tap any pixel to get its HEX, RGB and HSL code, and get the main colour palette of the picture.
Tap or drag on the photo to pick a colour. A magnifier shows the exact pixel.
๐ Works offline in your browser. Your files are not uploaded anywhere.
How to use Color Picker from Image
- Choose an image: a photo, a logo, a screenshot or a design.
- Tap or drag on the image. The magnifier shows the exact pixel under your finger.
- Copy the colour as HEX, RGB or HSL with one tap. Recently picked colours are kept below.
- Scroll to the palette to see the 5 to 8 main colours of the image with their share.
- Copy the HEX list or CSS variables, or download the palette as a PNG card.
About this tool
This colour picker reads the exact colour of any pixel in an image, which is the quickest way to match a brand colour from a logo, reuse a shade from a photo in your slides, choose paint or fabric to match a picture, or find the colour codes used in a screenshot of a website or app. The image stays on your device; nothing is uploaded.
HEX, RGB and HSL: which code do I need?
HEX (like #1E88E5) is the short code used in web design, Canva, Figma, PowerPoint and most apps: paste it into any colour box. RGB gives the red, green and blue amounts from 0 to 255 and is used in CSS, Photoshop, Excel and code. HSL describes hue (the colour angle on the wheel, 0 to 360), saturation and lightness; it is handy when you want a lighter or darker version of the same colour, because you only change the last number. All three describe the same sRGB screen colour.
How the automatic palette works
The palette groups all the pixels of the image into the 5 to 8 colours that best describe it, using a clustering method (k-means) in a colour space that matches human vision, so two shades that look alike to you are grouped together. Each swatch shows how much of the picture it covers. Large areas such as sky or a wall naturally get a big share; to get the accent colours of a logo, crop to the logo first or pick them by hand with the magnifier.
Tips for accurate colours
- Photos are never one flat colour: light, shadow and camera noise change every pixel. Pick several spots and choose the one that looks right, or use the palette, which averages similar pixels.
- For brand colours, use the original logo file (PNG or SVG) rather than a photo or a compressed screenshot.
- JPG compression shifts colours near sharp edges; pick from the middle of a flat area.
- Screen colours (RGB) and printed colours (CMYK, Pantone) differ. Use the HEX code as a starting point and check a printed proof before a large print run.
Frequently asked questions
How do I get the HEX code of a colour in a picture?
Open the image here, tap the spot you want, and press Copy next to HEX. Drag your finger to fine-tune: the magnifier shows the exact pixel.
Is my image uploaded?
No. The picture is read inside your browser and never leaves your device.
Why do I get slightly different colours on the same object?
Real photos contain light, shadow and noise, so neighbouring pixels differ a little. Use the palette for an averaged colour, or pick the spot that looks closest.
Can I pick a colour from my screen or another website?
On desktop Chrome and Edge a Pick from screen button appears: it lets you pick any colour on your screen. On other browsers, take a screenshot and open it here.
Can I export the palette?
Yes. Download a PNG card with all swatches and codes, copy the HEX list, or copy ready-made CSS variables for your website.
Does it work with transparent PNG logos?
Yes. Transparent pixels are ignored in the palette, and tapping a transparent spot tells you it is transparent.