How to use Color picker from image
- 1
Open an image
Drop, browse or paste a screenshot, photo or logo of up to 25 MB — JPG, PNG, WebP, AVIF, HEIC, GIF or SVG.
- 2
Aim with the magnifier
Hover or drag over the picture; an 11 × 11 pixel loupe shows the exact pixel under the crosshair and its HEX code.
- 3
Click to pick
Get HEX, RGB, HSL and OKLCH values, each with its own copy button. Arrow keys nudge the crosshair and Enter picks.
- 4
Grab the palette
Choose 5 to 12 dominant colours and copy them as CSS variables, JSON or a Tailwind theme block.
Limits and Pro
One image at a time, up to 25 MB, with unlimited picks, 5–12 palette colours and a 24-colour history.
Pro lets you sample pictures as large as 4 GB. See Pro
About Color picker from image
Color picker from image reads the exact value of any pixel in a picture and turns the whole image into a palette. Each pick gives the colour in four notations: HEX for design tools, rgb() and hsl() for CSS, and oklch() for modern CSS colour work, where lightness and chroma behave the way the eye expects. Picks land in a history of the last 24 colours, kept in this browser so they are still there next time; in Chrome and Edge on desktop, Pick from screen also samples any colour outside the page through the browser's eyedropper.
The palette is computed by k-means clustering in the OKLab colour space on a copy of the image scaled to at most 200 pixels on its longest side. Similar clusters are merged, transparent pixels are ignored, and colours are sorted by how much of the image they cover, with the share shown on each swatch. The same image always produces the same palette.
Designers use it to match a brand colour from a logo, build a theme from a photo, check the exact colour of a button in a screenshot, or collect a mood board. Values are standard sRGB as your browser displays the image, so a JPG artefact or a wide-gamut source can shift a pick by a few units from the original design file. Semi-transparent pixels report their colour without the transparency, and the tool doesn't name colours or check contrast ratios.
Privacy
The image is decoded and sampled in this tab, and palette clustering runs in a small Web Worker created after you open it; nothing is uploaded. Your colour history is saved only in this browser's local storage, and Pick from screen uses your browser's built-in eyedropper, which shares the single chosen colour with this page and nothing else.
Features
Pixel-exact loupe
An 11 × 11 pixel magnifier with keyboard nudging for precise picks on mouse and touch.
Dominant palette
5–12 colours by k-means in OKLab, sorted by share of the image.
Developer exports
HEX, RGB, HSL and OKLCH values plus CSS variables, JSON or a Tailwind @theme block.
Colour history
Your last 24 picks stay in this browser, ready to copy as a list.