Image Color Picker

Upload an image and click any pixel to get its exact HEX, RGB, HSL and CMYK values — use the magnifier for precision, extract the image's dominant colours, and export your palette. The image is read in your browser and never uploaded.

Or drop an image here. JPG, PNG, GIF, WebP, BMP, AVIF, SVG — any image your browser can open.

Key Features

Precision Picking

Exact full-resolution pixels, with an 11 × 11 magnifier and arrow-key nudging.

Dominant Colours & Harmonies

Find the main colours of an image and matching complementary, analogous and triadic colours.

Export Palettes

Save your last 20 picks as a JSON palette.

Image color picker: get HEX, RGB, HSL and CMYK from any pixel

To pick a colour from an image, click Upload Image (or drop a picture on the upload box), then click any pixel. The Current Color panel shows its HEX, RGB, HSL and CMYK codes, each with a copy button. The picker reads the exact pixel from the full-resolution image, even when the picture is shown smaller on screen (images over about 40 megapixels are sampled from a reduced copy), and an 11 x 11 pixel magnifier shows what is under the pointer.

This free image color picker does more than one click at a time. Extract Dominant Colours groups the picture into up to eight main colours with their share of the image, Colour Harmonies lists matching colours for whichever colour is current, and the last 20 picks export as a JSON palette. The image is read in your browser, nothing is uploaded, and you can verify that in the Network tab of DevTools.

Need to type a colour instead of sampling it? Use the colour picker with WCAG contrast checks, or convert codes with the colour code converter.

Table of Use: what you do and what you get

Common colour-picking jobs and the output of each
Use caseWhat you doWhat you get
Match a brand colour from a logoUpload the logo, click a flat area of colourFor example #ff5733, rgb(255, 87, 51), hsl(11, 100%, 60%) and cmyk(0%, 66%, 80%, 0%)
Build a palette from a photoClick Extract Dominant ColoursUp to 8 colours, each with its percentage of the visible pixels
Find colours that go togetherPick a colour, then look under Colour HarmoniesComplementary, analogous, triadic and split-complementary swatches
Hit a tiny detail exactlyTab to the image, arrow keys to move (Shift = 10 px), Enter to pickThe pixel at the x, y shown under the magnifier
Sample a faded PNG edgeClick a semi-transparent pixelAn 8-digit HEX code plus RGBA and HSLA with the opacity
Hand colours to a designer or scriptClick Export Palette (JSON)color-palette.json with hex, rgb, hsl, cmyk and alpha for each colour in the history

Once you have a colour, use it as the frame colour in the image border adder, or turn two sampled colours into CSS with the gradient generator.

Features

  • Exact pixel picking. One click reads one pixel, not an average. Small images are enlarged on screen up to 4 times with crisp pixels, and large ones are fitted to the page, but the value comes from the full-resolution original (images over about 40 megapixels are sampled from a reduced copy, and the tool tells you).
  • Magnifier and position. An 11 x 11 pixel Magnifier beside the image shows the pixels around the pointer, plus the HEX code and the x, y position.
  • Keyboard picking. Focus the image, move with the arrow keys (Shift moves 10 pixels) and press Enter or Space.
  • Four formats with copy buttons. HEX, RGB, HSL and CMYK, copied as #ff5733, rgb(255, 87, 51), hsl(11, 100%, 60%) or cmyk(0%, 66%, 80%, 0%). Transparent pixels switch to HEX with alpha, RGBA and HSLA.
  • Dominant colours. K-means clustering with a fixed seed, so the same image always gives the same colours.
  • Colour Harmonies. Complementary, analogous, triadic and split complementary, one click to make any of them current.
  • Color History. The 20 most recent picks, with Export Palette (JSON) and Clear.
  • One image at a time. JPG, PNG, GIF, WebP, BMP, AVIF and SVG are accepted, along with anything else your browser can open.

How the formats are calculated

How each colour format is derived from the red, green and blue values
FormatRangeHow it is derived
HEX#000000 to #ffffffR, G and B each written as two base-16 digits
RGB0 to 255 per channelThe sRGB value your browser decodes; files with a colour profile (for example iPhone Display P3) are converted to sRGB first
HSLHue 0-359 degrees, saturation and lightness 0-100%Standard RGB-to-HSL conversion, rounded to whole numbers
CMYK0-100% per inkK = 1 - max(R, G, B) / 255; C, M, Y = (1 - channel / 255 - K) / (1 - K); no ICC profile

How to pick colors from an image, step by step

  1. Click Upload Image, or drop a picture on the box. If you want a tighter picture first, use the image cropper.
  2. Move the pointer over the image and watch the Magnifier. The HEX code and the x, y position update as you move.
  3. Click to pick. The colour appears under Current Color in HEX, RGB, HSL and CMYK.
  4. Click the copy icon beside a format. A green note confirms what was copied.
  5. Click Extract Dominant Colours for the main colours of the whole image, or look under Colour Harmonies for matching colours.
  6. Choose Export Palette (JSON) to save the Color History, Clear to empty it, or New Image to load another picture.

Who can use it

  • Web developers who need a HEX or RGB value from a mock-up or screenshot.
  • Designers and brand teams collecting colours from packaging, posters or a collage mood board.
  • Illustrators and photographers who want the palette of a reference image, perhaps after checking the tones with the grayscale converter.
  • Students and teachers exploring colour theory with real pictures.
  • Online sellers choosing a backdrop colour that suits a product, perhaps after cutting the background out with the remove background tool.

FAQs

How do I pick a color from an image online?

Click Upload Image (or drop a picture on the upload box), then click the pixel you want. The Current Color panel shows its HEX, RGB, HSL and CMYK values, each with a copy button. Move the pointer first and watch the 11 by 11 pixel magnifier so you land on the right pixel. Click "New Image" to start over with another picture.

How do I find the HEX code of a color in a photo?

Click the colour in the photo and read the HEX row under Current Color, for example #ff5733. The copy button next to it puts the code on your clipboard with its # sign, ready to paste into CSS or a design tool. A partly transparent pixel gets an 8-digit HEX code, where the last two digits are the opacity.

How accurate is picking a color from an image?

Each pick reads one pixel from the full-resolution image. Images over about 40 megapixels are sampled from a reduced copy, and the tool tells you. Codes are read in sRGB, so a photo with an embedded colour profile, such as an iPhone Display P3 picture, can give slightly different values from Photoshop. Photos also contain noise, so use the magnifier or the dominant colours.

Why does the CMYK value differ from my printer or Photoshop?

The CMYK figures come from the plain formula K = 1 - max(R, G, B) / 255, with C, M and Y scaled by what remains. It uses no ICC printer profile, so it is a rough reference, not a press-ready value. For commercial print, convert the colour in design software with your printer's profile and proof it before you order.

How do I get the main colors or a palette from an image?

Click "Extract Dominant Colours". The tool shrinks the image so its longest side is at most 160 pixels, ignores pixels that are mostly transparent, and groups the rest into up to eight colours with k-means clustering. Each colour shows its share of the visible pixels. Click one to make it current, then export the history as JSON.

What are complementary, analogous and triadic colors?

They are hue rotations of the current colour at the same saturation and lightness. Complementary is 180 degrees away, analogous is 30 degrees either side, triadic is 120 and 240 degrees, and split complementary is 150 and 210 degrees. They are a quick starting point for a palette, not a rule, so judge the result by eye.

Can I pick a color from a transparent PNG?

Yes. The tool reports each pixel with its opacity. A partly transparent pixel shows RGBA and HSLA values and an 8-digit HEX code, a fully transparent pixel is labelled as such, and the swatch is drawn solid. Browsers store canvas pixels premultiplied, so a semi-transparent pixel's RGB can be slightly off, and the more transparent the pixel, the larger the error.

Is it safe to use an image color picker online, and is my image uploaded?

The image is not uploaded. It is opened and sampled by JavaScript in your own browser, so nothing is sent to ZipConvert or anyone else. Picked colours stay in the page and are gone when you close it. You can confirm this in the Network tab of your browser DevTools while you pick colours.