Image Color Picker
Pick exact colors from any image and auto-extract its dominant palette — copy HEX, RGB and HSL, privately, in your browser.
Drag & drop an image here, or
JPG, PNG, WebP, GIF (first frame), BMP · up to 15 MB · or paste with Ctrl/⌘+V
Nothing is uploaded — this runs entirely in your browser.
Pick from image
Hover to magnify, click to pick. Keyboard: focus the image, move with arrow keys (hold Shift for larger steps), press Enter to pick.
Picked colors
No colors picked yet. Click anywhere on the image to start building a palette.
Dominant colors (auto-extracted)
Export palette
What is the image color picker?
An image color picker lets you point at any pixel in a photo, screenshot, logo or artwork and read back its exact color as HEX, RGB and HSL. Instead of guessing values by eye or hunting through a design app, you load an image, hover over the spot you care about, and the tool samples the true pixel value and hands you copy-ready color codes. It is the digital version of a paint-shop swatch fan: designers use it to match a brand color from a reference image, front-end developers use it to lift a color out of a screenshot or mock-up, and anyone building a slide deck or social post uses it to keep a consistent palette across images. This tool does two jobs at once. First, it lets you manually pick as many individual colors as you like and collect them into a palette. Second, it automatically analyzes the whole image and suggests the handful of colors that best represent it, so you get a usable palette even before you click anything. Everything happens locally: your image is decoded and read entirely inside your own browser tab and is never uploaded to a server or stored anywhere.
How it works
When you add an image it is drawn onto an HTML canvas at its full native resolution, which is kept in memory for accurate sampling even though the on-screen preview is scaled down to fit. As you move the pointer, a magnifying loupe shows a zoomed-in view of the pixels under the cursor with a crosshair on the exact pixel that will be sampled — this matters for thin lines, text and tiny UI details where being one pixel off changes the color. When you click, the tool reads that single pixel's red, green, blue and alpha values straight from the canvas and adds them to your picked list, converting them into HEX, RGB, RGBA (when the pixel is partly transparent) and HSL. HEX and RGB describe the same thing two ways: RGB lists the amount of red, green and blue from 0 to 255, and HEX writes those same three numbers in base-16, two digits each, after a hash. HSL is a more human description of the same color as Hue (which color of the rainbow, 0–360 degrees), Saturation (how vivid, 0–100%) and Lightness (how light or dark, 0–100%). For the automatic palette, the image is first shrunk to a small sample — a couple of hundred pixels on the longest side is plenty — and the pixels are grouped into a small number of representative buckets by repeatedly splitting the widest spread of colors and averaging what falls into each group. This quantization runs in a background Web Worker so even large photos don't freeze the page, and fully transparent areas are ignored so a transparent PNG background doesn't dilute the result. You can then export the whole palette as a plain HEX list, as CSS custom properties, as a Tailwind colors object, or as a downloadable PNG strip.
Worked example
Say you have a screenshot of a brand's website and you want its primary blue. You drop the screenshot in, hover over a solid area of the header, and the loupe magnifies it so you can land precisely on the button rather than a nearby gradient edge. You click, and a swatch appears reading HEX #1f66f0, RGB rgb(31, 102, 240) and HSL hsl(220, 88%, 53%). Clicking the HEX code copies it instantly with a “Copied!” confirmation. Meanwhile the dominant-color panel has already suggested six colors — the blue you picked, a near-white background, a dark slate text color and a couple of accents — so you can copy the lot as CSS variables like --color-1: #1f66f0; and paste them straight into your stylesheet. If a color looks slightly different once pasted into another program, that is usually a color-profile or transparency difference rather than a wrong reading: the tool reports the literal stored pixel value, which is exactly what you want when matching colors in code.
Frequently asked questions
Is my image uploaded anywhere?
No. The image is decoded and read entirely in your browser using a canvas. It is never sent to a server, and nothing is stored after you close the tab.
What image formats are supported?
JPG, PNG, WebP, GIF (the first frame) and BMP — anything your browser can display. You can add an image by dragging it in, choosing a file, pasting from the clipboard, or loading a URL.
How accurate is the automatically extracted palette?
It is a representative summary, not an exact count. The image is downsampled and its colors grouped into a few buckets, so the palette reflects the dominant tones. For a specific pixel-perfect value, use manual picking with the zoom loupe.
Can I pick colors from a screenshot?
Yes. Take a screenshot, then paste it directly with Ctrl/⌘+V or drop the file in. Screenshots are a common use case for matching an existing app or website's colors.
What's the difference between HEX and RGB?
They describe the same color. RGB lists red, green and blue each from 0 to 255; HEX writes those same three values in base-16 as a six-digit code after a hash. #ff0000 and rgb(255, 0, 0) are identical.
Why does my picked color look slightly different in another program?
Usually a color-profile (like sRGB vs Display P3) or transparency difference. This tool reports the raw stored pixel value, which is the correct value to use in CSS or design code.
Can I export the palette for use in CSS or Tailwind?
Yes. Copy the palette as a HEX list, as CSS custom properties (--color-1: …), or as a Tailwind colors object, or download it as a labelled PNG strip. Choose whether to export your picked colors or the auto-extracted ones.
Does this work on mobile?
Yes. The layout stacks on small screens and you can pick colors by tapping the image. On a desktop you also get keyboard picking: focus the image, move the crosshair with the arrow keys, and press Enter.
Related tools
- Image CompressorReduce image file size with an adjustable quality slider — processed entirely on your device.
- QR Code GeneratorCreate QR codes for links, Wi-Fi, contact cards, WhatsApp and more — with custom colours, a center logo, and PNG/SVG/JPG downloads.
- Unit ConverterConvert between metric and imperial units for length, weight, temperature, volume and speed.