OfflaneAI

Color picker from image —
the exact HEX of any pixel

Upload a logo, screenshot or photo, click the spot you need and copy the HEX code. The dominant palette is extracted automatically too.

  • 🖱️ Click any pixel
  • 📋 HEX · RGB · CSS
  • 🎨 Auto palette 3–12 colours
  • 🔒 No upload

Loading the tool… (JavaScript required)

How do I find a brand colour from a logo?

Drop the logo and click the coloured area; the HEX appears in the palette. For flat logos the automatic palette already lists the brand colours in order of coverage.

Why does the picked colour differ slightly from a screenshot?

JPEG compression and screen colour profiles shift colours a little. Use a PNG screenshot or the original asset for exact values.

Can I export the colours to CSS?

Yes — one click copies them as CSS custom properties (--color-1: #...;) ready for your stylesheet or Tailwind config.

How are the colours chosen?

A k-means clustering of the image's pixels finds the colours that best represent it, sorted by how much of the image they cover — the same method design tools use. Increase the count to get accent colours, decrease it for a tighter brand palette.

Can I get the exact colour of one spot?

Yes — click on the image and that pixel's HEX and RGB are added to the palette. Useful for picking a brand colour from a logo or matching a colour from a photo.

What can I export?

A plain HEX list, CSS custom properties (--color-1: #a1b2c3;) ready for a stylesheet, or a PNG strip of the swatches with their codes for a mood board.

Picking one exact pixel

Click anywhere on the picture. A “Picked” line shows that single pixel in three notations. Its “Copy” button copies the HEX code; select the RGB or HSL text by hand if you need those.

NotationExampleWhere you paste it
HEX#1A73E8Figma, Canva, design tool colour fields, CSS
RGBrgb(26, 115, 232)CSS, code, apps that ask for three numbers
HSLhsl(214, 82%, 51%)CSS when you want to make lighter or darker variants

HSL appears only here, not on the palette cards. Its last value is lightness, so a hover shade of the same colour is the same code with a lower percentage.

A new click replaces the previous one. Copy the code before you click again. The picked colour is also not part of the palette exports, which contain the automatic swatches only.

Where to click

  • The middle of a flat area. The edge of a letter, icon or button is smoothed into the background, so its pixels are a mix of two colours.
  • Not on an empty part of a PNG. A transparent pixel returns #000000.
  • Not on a thin line in a very large image. A picture wider or taller than 1400 px is scaled down to 1400 px when it is loaded, and a one-pixel line is blended with its neighbours. Crop the area you need first with the crop tool, then click.
  • On a photo, more than once. Light and shade make every pixel of a wall or a product slightly different. Click a few spots, or use the swatch.

Picked value or palette swatch

The palette above the picture is calculated automatically by grouping similar pixels. Each swatch is the average of its group, so on a photo it may be a tone that no single pixel has.

You needUse
The colour a designer typed into a logo fileThe picked pixel from a flat area
The overall tone of a photo, fabric or wallThe swatch
Several brand colours at onceThe swatches, with “Number of colours” set to 3–5
A small accent such as an icon or a link colourThe picked pixel

Screenshots as the source

A screenshot is the usual way to get the colour of a website or app. Save it as PNG, not JPG, and take it at 100% zoom. A zoomed page smooths edges and small text, which mixes colours at exactly the spots you are likely to click.

The image is analysed in your browser and is not uploaded. The colour palette guide explains how the automatic swatches are found and what each export contains.