Image

How to Get the HEX Color of Any Pixel in an Image

4 min read Updated 30 June 2026

You spotted the perfect shade in a photo, a screenshot, or a brand logo — and now you need its exact code. Eyeballing it never works, and most "what color is this" sites make you create an account or upload your file to a server first. There's a faster, more private way.

Tooldrop's image color picker reads pixel colors straight from an image in your browser. Drop a picture in, click the spot you want, and copy the HEX (like #2563eb) or RGB value in one click. It's free, there's no sign-up, no limits, and because the work happens on your device with the canvas, your image is never uploaded anywhere.

Step by step

  1. 1Open the Image Color Picker at /image/color-picker — nothing to install or sign up for.
  2. 2Under "1. Add an image," drag a file into the drop zone or click to browse and choose one. JPG, PNG, and WebP all work.
  3. 3Your image appears in the "2. Pick a colour" panel, ready to sample. It stays on your device — it is read locally with the canvas, not uploaded.
  4. 4Move your cursor over the image. A live preview shows the HEX and RGB of whatever pixel you're hovering, so you can hunt for the exact shade.
  5. 5Click the pixel you want to lock its colour in place as your picked colour.
  6. 6Check the result: a colour swatch plus the HEX value (e.g. #2563eb) and the RGB value (e.g. rgb(37, 99, 235)).
  7. 7Click "Copy HEX" or "Copy RGB" to send the code straight to your clipboard, then paste it into your design tool, CSS, or doc.
  8. 8Want another shade? Just hover and click a different pixel — or drop a new image to start over. There are no usage limits.
Try it now — it's free
Runs in your browser. No upload, no sign-up.
Open Image Color Picker

Why use a browser-based image color picker?

An image color picker is the quickest way to turn a color you can see into a code you can use. Instead of guessing at a hex value or matching swatches by hand, you click the actual pixel and read its exact RGB and HEX.

Tooldrop runs the whole thing in your browser. When you drop an image, it's drawn to a canvas on your own device and each pixel you click is sampled locally — the file never leaves your computer and nothing is sent to a server. That means it's fast (no upload wait), private by design, and works on sensitive material like client mockups, unreleased designs, or personal photos without second-guessing where they end up. It's also completely free, with no account and no daily cap on how many colors you grab.

HEX vs RGB: which should you copy?

The tool gives you both formats for every pixel, so you can grab whichever your workflow expects.

HEX (like #2563eb) is the compact six-character code you'll reach for most in web and design work — CSS, Figma, Tailwind config, brand guidelines. RGB (like rgb(37, 99, 235)) spells out the red, green, and blue channels as numbers from 0 to 255, which is handy when you're tweaking a single channel, working in editors that prefer RGB inputs, or building an rgba() value with transparency. Both describe the same color; pick the one that drops cleanly into wherever you're pasting.

Get more from your colors

Once you've sampled a shade, Tooldrop has a few neighbours that pair well with it — all free, all in-browser, all no sign-up. If you want every dominant color in one go instead of clicking pixel by pixel, the Color Palette Extractor at /image/color-palette pulls a full palette from any image. Need the same color in a different notation? The Color Converter at /dev/color-converter turns HEX into RGB and HSL instantly. And before you ship a color combo, the Contrast Checker at /dev/contrast-checker tells you whether your text passes WCAG AA and AAA. Cropping the image down to just the area you care about first? That's at /image/crop.

Frequently asked questions

Is my image uploaded when I pick a color?
No. The image is read locally in your browser using the canvas to sample pixel colours. The file never leaves your device and isn't sent to any server, so it's safe to use on private or unreleased images.
What color formats does the tool give me?
Both HEX and RGB for the pixel you pick. HEX looks like #2563eb and RGB looks like rgb(37, 99, 235). You can copy either one to your clipboard with a single click.
What image formats can I use?
JPG, PNG, and WebP all work. Just drag one into the drop zone or click to browse and choose a file from your device.
Do I need an account, and are there any limits?
No account and no limits. The image color picker is completely free, requires no sign-up, and you can sample as many colors from as many images as you like.

Tools used in this guide

Related guides