Free tool

Free image color picker

This free image color picker lets you upload any photo, hover over it like an eyedropper, and instantly read the HEX, RGB, and HSL value of any pixel — plus an automatically extracted 8-color palette of the image's dominant colors. Everything runs locally in your browser, so your image is never uploaded anywhere.

Image color picker

Upload an image, hover to sample any pixel's HEX and RGB, and pull an 8-color palette — all processed locally in your browser.

Free & unlimitedNo upload — 100% privateHEX, RGB & HSL

Drop an image here, or click to browse

JPG, PNG, WebP, GIF or BMP — sampled entirely on your device

Everything happens locally using the HTML canvas API — your image is decoded and sampled in this browser tab and is never uploaded to a server.

How to get a HEX color from an image

  1. Upload your image. Drag and drop a JPG, PNG, WebP, GIF, or BMP file onto the box above, or click to browse your device.
  2. Hover to sample. Move your mouse anywhere over the image and watch the HEX, RGB, and HSL values update live under a large color swatch.
  3. Click to freeze a color. Click (or tap on mobile) the exact pixel you want, and the reading locks in place so you can copy it without your cursor drifting off target.
  4. Copy the value you need. Every readout — HEX, RGB, and HSL — has its own one-click copy button, ready to paste into CSS, Figma, Photoshop, or a design system.
  5. Grab the palette. Scroll down to the extracted palette to see the image's eight most dominant colors, each with its own HEX code and copy button.

Because sampling happens directly on the canvas pixel data in your browser, the color you copy is the exact value baked into the image file — not an approximation from a screenshot or a color-blind guess.

How the eyedropper and palette extractor work

Under the hood, this tool draws your image onto an HTML <canvas> element scaled to fit a comfortable viewing size, while keeping the full-resolution source data available for accurate sampling. Two features run off that same canvas:

  • Pixel eyedropper. On every mouse move (or tap), the tool calls ctx.getImageData(x, y, 1, 1) to read the exact red, green, and blue values of the pixel under your cursor, then converts that to HEX and HSL for display. A click freezes the reading so it stops updating as you move away.
  • Palette extraction. The tool samples pixels on a grid across the whole image (skipping most pixels for speed), rounds each RGB channel to the nearest bucket to group visually similar colors together, and counts how often each bucket appears. The eight buckets with the highest pixel counts become your palette, sorted from most to least dominant, with each swatch's share of the sampled pixels shown as a percentage.

This bucketing step — sometimes called color quantization — is what turns millions of slightly-different pixel values into a small, usable palette instead of a wall of near-duplicate colors. Because your image is loaded from a local file, the canvas stays same-origin and getImageData() can read pixel data without being blocked by cross-origin security restrictions.

HEX vs RGB vs HSL: which format should you copy?

The tool shows all three because different tools and workflows expect different formats:

FormatLooks likeBest for
HEX#3B82F6CSS, HTML, design tools, and anywhere you need a compact, copy-paste-friendly code.
RGBrgb(59, 130, 246)CSS with alpha transparency (rgba), canvas APIs, and image-processing code.
HSLhsl(217, 91%, 60%)Building color palettes and shades — adjusting lightness or saturation is intuitive.

If you only need one value, HEX is the safest default — it is universally understood by browsers, design tools, and CMSs. Reach for HSL when you want to programmatically generate lighter or darker variants of the same color, since you only have to change one number.

Why extract a color palette from a photo?

  • Brand and website palettes. Pull the exact colors from a logo, product photo, or brand reference image so a website or app matches perfectly instead of eyeballing shades.
  • Design handoff. Hand developers precise HEX codes instead of a screenshot and a guess, cutting back-and-forth over “what blue is that exactly?”
  • UI theming. Generate a cohesive color scheme for a dashboard, slide deck, or landing page straight from a hero image or product photo.
  • Matching print to screen. Confirm the RGB values behind a printed swatch, packaging mockup, or scanned artwork before using them in digital work.
  • Accessibility checks. Grab a background and foreground color from a design mockup, then verify their contrast ratio meets WCAG guidelines.

Who uses an image color picker?

  • Web & UI designers extract exact brand colors from logos and mood boards for CSS and design systems.
  • Developers grab precise HEX/RGB values from mockups or screenshots without opening Photoshop.
  • Illustrators & digital artists sample reference photos to match skin tones, skies, and lighting.
  • Marketers & brand managers confirm a partner or competitor's brand colors from their marketing assets.
  • Print designers cross-check scanned swatches or packaging photos against digital color codes.
  • Students & hobbyists learn how color theory and palettes work by exploring real photos.

Once you have your colors, pair this with the color contrast checker to make sure any text-on-background combination you pick is readable and accessible.

Tips for getting accurate colors from an image

  • Zoom matters less than you think. Because sampling reads the underlying pixel data rather than what your eye perceives, you get the exact value even on a small on-screen image.
  • Avoid compression artifacts. Heavily compressed JPGs can introduce slight color noise around edges — sample from a flat, uncompressed area of the image when precision matters.
  • Use the palette for the big picture, the eyedropper for precision. The palette shows what colors dominate overall; the eyedropper is better when you need one specific, exact pixel.
  • Watch for anti-aliasing. Pixels right on an edge between two colors are often a blend of both — sample a pixel or two into the solid area for a cleaner reading.
  • PNG and WebP preserve color best. If you control the source image, export it as PNG or lossless WebP before sampling to avoid any JPEG compression drift.

Is this color picker from image safe and private?

Yes. Unlike many online color-picker tools that upload your image to a server for processing, this tool decodes and samples your image entirely inside your browser tab using the HTML canvas API. Your file never leaves your device, the tool works offline once the page has loaded, and nothing is stored, logged, or sent anywhere. That makes it safe to use with unreleased branding, private photos, or client work under NDA.

Frequently asked questions

How do I get the HEX color from an image?
Upload the image into the tool above, then hover your mouse over any part of it. The HEX code updates live under the color swatch — click to freeze it, then use the copy button to grab it.
Is this color picker from image accurate?
Yes. It reads the exact RGB values from the image's raw pixel data via the canvas getImageData() API, not an approximation from a screenshot, so the HEX/RGB/HSL values match the file precisely.
Does it work with PNG, JPG, WebP, and GIF?
Yes. You can upload JPG, PNG, WebP, GIF, or BMP files, and the tool decodes them directly in your browser without any conversion step.
How does the color palette extractor choose its colors?
It samples pixels across a grid over the whole image, groups similar colors together by rounding each RGB channel into buckets, counts how often each bucket appears, and returns the eight most frequent as your palette, sorted by prevalence.
Is my image uploaded to a server?
No. The entire process — decoding, sampling, and palette extraction — happens locally in your browser using the canvas API. Your image is never sent anywhere.
Can I use this on my phone?
Yes. Tap anywhere on the image to sample and freeze a color, and use the copy buttons to grab the HEX, RGB, or HSL value — no app install required.

Found your colors? Shorten the link next

fewly turns any URL into a short, branded, trackable link — free to start, no credit card.