Photo Color Picker with Magnifier
Pick colours from a photo with a magnifier, build a palette and export it as HEX codes, CSS variables or JSON. Free, in your browser.
Move over the photo to see the magnified pixels. Click (mouse) or press "Add to palette" (touch) to save a colour. Keyboard: focus the photo, use arrow keys (Shift = 10 px) and Enter.
JPG compression may shift some pixel colours slightly.
About Photo Color Picker with Magnifier
The Photo Color Picker lets you hover over a photo and read the exact colour under the pointer, with a magnifier for precise picking. Click to save colours to a palette and export them for your design or code.
Your files stay on your device
The photo is read in your browser and never uploaded.
Build a palette
Each click adds a swatch with HEX, RGB and HSL copy buttons. A colour that is already in the palette is not added twice.
Export for developers
Download the palette as CSS variables (--color-1, --color-2 and so on) or as JSON, ready to paste into your project.
Pixel-perfect with the keyboard
Focus the picture and use the arrow keys to move one pixel at a time, Shift for ten pixels, and Enter to save the colour.
Why JPG colours look slightly off
JPG photos do not store exact colours, so a pure red may read #FE0000, and edges mix two colours. For exact brand colours, use a PNG or SVG file.
Good to know
It reads single pixels, not area averages. The palette is cleared when you open another photo, so export it first.
How to use Photo Color Picker with Magnifier
- Choose a photo.
- Move over it and read the colour.
- Click to add colours to the palette.
- Copy or download the palette.
Help & FAQ
How do we get the colour of a pixel in a photo?
Open the photo, move over it and read the HEX, RGB and HSL values shown, then click to save the colour.
Does it upload our photo?
No. It is read in your browser and no request carried the file in our test.
Why is our picked colour slightly wrong?
JPG compression changes pixels. Our red read #FE0000 and an edge pixel read #51D213. Use PNG or pick from the middle of a flat area.
What formats can we open?
JPG, PNG, WebP, GIF, BMP, SVG and AVIF, one file at a time.
Can we use the keyboard?
Yes. Arrow keys move one pixel, Shift plus an arrow moves 10 pixels, and Enter saves the colour.
What does Add to palette do?
It saves the colour under the pointer, which replaces the mouse click on touch screens.
Are duplicate colours added twice?
No. Clicking a colour that is already in the palette adds nothing.
What can we export?
HEX codes (Copy all HEX), a CSS variables file and a JSON file.
What does the CSS file look like?
A :root block with --color-1, --color-2 and so on, with lower-case hex values.
What is in the JSON file?
A list of objects with a hex string and an rgb array, for example #ff0000 and [255, 0, 0].
Does it find the main colours of a photo?
No. It reads single pixels that you choose; there is no automatic palette.
Does it match what our screen shows?
It reports the stored pixel values, without a colour profile, so a screen with a different profile can look different.