GALAXY OF TOOLS

IMAGE SECTOR

Color Picker from Image

Tap any pixel of a photo to get its HEX, RGB and HSL code, and extract the dominant colour palette.

Drop an image here or click to choose Photo, screenshot, logo or design · JPG, PNG, WebP, GIF · or paste with Ctrl+V

Runs entirely in your browser. Nothing you enter or upload is sent to a server.

Pick any colour from an image

Saw the perfect shade in a photo, a logo or a screenshot and want its exact code? The Color Picker from Image works like the eyedropper in a design app: upload a picture, click or tap a pixel, and get its HEX, RGB and HSL values ready to copy into CSS, Figma, Canva, PowerPoint or a paint shop’s colour matcher.

A magnifying loupe shows the pixels around your pointer, so you hit the colour you mean rather than an anti-aliased edge. Every pick is saved to a short history on your device, and the tool also extracts the image’s dominant colour palette — useful for building a brand scheme from a product photo or matching a website to a hero image. The image is analysed in your browser and is never uploaded.

How to use the Color Picker from Image

  1. Drop an image on the upload area, click to choose one, or paste a screenshot with Ctrl+V.
  2. Move the mouse over the image to see the magnified pixels, then click to pick. On a phone, touch and drag — the loupe appears above your finger — and lift to pick.
  3. Copy the HEX, RGB or HSL value with the button next to it.
  4. Click any swatch under “Recent picks” to bring that colour back.
  5. Scroll to “Dominant colours” to see the main palette, change how many colours you want, and copy it as a list or as CSS variables.

Color Picker from Image features

Pixel-precise loupe

An 11 × 11 pixel magnifier with a marked centre pixel follows your mouse or finger, so you can pick exactly the shade you want.

HEX, RGB and HSL

Every pick is shown in the three formats used by CSS and design tools, with one-tap copy buttons. Semi-transparent pixels are reported as rgba and hsla.

Pick history

Your last 16 colours are kept in this browser so you can compare them or come back later.

Dominant palette

Clustering finds the 5–8 colours that cover most of the picture and shows the share of each.

CSS-ready export

Copy the palette as a comma-separated HEX list or as ready-made CSS custom properties.

Private

The picture is processed with the canvas API on your own device. Nothing is uploaded.

HEX, RGB and HSL explained

RGB describes a colour as amounts of red, green and blue light from 0 to 255 each — rgb(255, 99, 71) is the tomato red of CSS. HEX is the same three numbers written in hexadecimal, two digits each: 255 → FF, 99 → 63, 71 → 47, giving #FF6347. HSL describes the same colour as hue (an angle on the colour wheel), saturation and lightness: hsl(9, 100%, 64%). HSL is the easiest to tweak by hand — lower the lightness for a darker shade, lower the saturation for a muted one.

To translate between these and other formats such as CMYK, use the colour converter; to find the nearest named colour, try the colour name finder.

How the palette is extracted

The image is sampled down to about 128 pixels on its longest side, transparent pixels are ignored, and the remaining colours are grouped with k-means clustering: starting points are chosen with the k-means++ method, then each pixel joins its nearest group and every group moves to the average of its members until nothing changes. Each swatch is the average colour of one group, and the percentage shows how much of the picture it covers. The seed is fixed, so the same image always gives the same palette.

Averages favour large areas, so a small but striking accent — a red logo on a grey wall — may not appear as its own swatch. Pick such accents directly with the eyedropper, or build a full scheme around one colour with the colour palette generator.

Tips for accurate colour picking

  • Pick from flat areas. Edges of text and shapes are blended with the background (anti-aliasing), so the pixel right on an edge is a mix of both colours.
  • Prefer PNG screenshots to JPG photos. JPG compression shifts colours slightly and adds noise, especially around sharp edges; neighbouring pixels can differ by several units.
  • Photos vary pixel by pixel. Lighting, shadows and sensor noise mean a “blue” wall contains many blues. Pick a few spots and compare them in your history.
  • Screens differ. The code is exact, but how it looks depends on the display’s calibration and colour profile — check printed or painted matches under real light.
  • Check readability. If you use a picked colour for text, test it against its background with the contrast checker.

Color Picker from Image FAQ

How do I get the HEX code of a colour in an image?

Upload the image, then click or tap the spot with the colour you want. The colour picker from image shows the HEX code at once, along with RGB and HSL, each with a copy button.

Does it work on iPhone and Android?

Yes. Touch the image and drag: a magnifier appears above your finger showing the pixels underneath. Lift your finger to pick the colour in the centre square.

Why is the colour slightly different from what I expected?

Photos and JPG files contain variations from lighting, noise and compression, so neighbouring pixels differ. Use the loupe to pick from a flat area, or compare a few picks in your history.

How many colours can the palette show?

Choose 5, 6, 7 or 8. If the image contains fewer distinct colours than you ask for, only the colours that actually exist are shown.

Is my image uploaded?

No. The image is drawn onto a canvas in your browser and read there. Your pick history is stored only in this browser’s local storage.

Can I pick colours from a website?

Take a screenshot (Print Screen on Windows, Shift+Command+4 on a Mac, or your phone’s screenshot buttons), then paste it here with Ctrl+V or upload it.

You might also need