Image Color Picker: Get HEX, RGB and HSL Codes from Any Picture

Sample precise colours from an image and copy their HEX, RGB and HSL values. Zoom in with the loupe for pixel-accurate picks, and pull out the dominant palette of a photo or logo automatically.

  • HEX, RGB and HSL
  • Zooming loupe
  • Palette in one step
Drop an image here, click to choose, or paste with Ctrl+V Photos, screenshots, logos · nothing is uploaded

How to use the Image Color Picker tool

  1. Load a pictureDrop a photo, screenshot or logo, click to browse, or paste with Ctrl+V.
  2. Hover, then clickMove across the image to see the colour under the loupe, and click to capture it.
  3. Copy a valueGrab the HEX, RGB or HSL code; each captured colour is kept in the list below.
  4. Use the paletteTake the automatically detected key colours, or copy them all as CSS variables.

Picker features

  • Zooming loupeAn enlarged view of the pixels around the pointer makes precise selection easy.
  • Automatic paletteDetects the eight most significant colours, sorted by how much of the picture each covers.
  • Screen-wide eyedropperIn Chrome and Edge, sample a colour from any window or application on your screen.
  • Keyboard controlStep one pixel at a time with the arrow keys, ten with Shift, and press Enter to capture.
  • Stays on your deviceYour picture is handled in the browser and never uploaded.

Why sample colours from an image?

  • Brand matching: find a logo’s exact HEX value when no style guide is to hand.
  • Palettes from photos: base a website, slide deck or room makeover on the colours of a favourite picture.
  • Front-end work: lift colours from a mock-up screenshot straight into your CSS.
  • Arts and crafts: match paints, threads or fabrics to a reference image.

Three ways to write a colour

  • HEX, for example #0EA5E9, is the standard in web design, CSS and tools like Figma and Canva.
  • RGB, such as rgb(14 165 233), lists red, green and blue values and is common in CSS, Photoshop and screen or video work.
  • HSL, like hsl(199 89% 48%), describes hue, saturation and lightness, which makes lighter or darker shades easy to create.

Need CMYK for printing or a contrast check for accessibility? Paste the HEX value into our Color Converter.

Why does one area give several slightly different colours?

Lighting, texture, sensor noise and JPEG compression mean a photo is made of many marginally different pixels. Use the loupe and sample from a flat region, or rely on the automatic palette, which averages similar pixels into representative shades. For logos and graphics, work from the original PNG or SVG instead of a compressed screenshot to get the true brand colour.

How the palette is calculated

Similar pixels are grouped with k-means clustering, a standard colour-quantisation method, and the average colour of each group is shown, largest group first. Transparent pixels are skipped, so logos with clear backgrounds produce a clean palette.

Starting from an SVG logo? Convert it first with SVG to PNG.

Frequently asked questions

How do I get the HEX code of a colour in a picture?
Load the image, hover over the colour and click. HEX, RGB and HSL values appear, each copyable in one click.
Can it build a palette from a photo?
Yes. Key colours are extracted as soon as the image loads; click a swatch to copy it or copy the whole set as CSS variables.
Can I pick from my screen rather than an image?
In Chrome and Edge, press “Pick a color from anywhere on screen” to use the browser’s eyedropper.
Why doesn’t it exactly match the brand colour?
Compression, lighting and screenshots shift pixels slightly. Use the original logo file and sample a flat area for the most accurate value.
Does my image get uploaded?
No. Everything happens in your browser and the picture stays on your device.