Upload an image to sample colors
Or try an example
Help Us Improve
—
(—)
Image color picker
Upload a photo and click any pixel to find HEX, RGB, and HSL codes. Free eyedropper color picker—match colors from logos, copy codes in your browser.
What is an image color picker?
Picker features
Click to sample
Crosshair cursor—one click reads the pixel under the pointer.
HEX, RGB, HSL
Three common formats with dedicated copy buttons.
Live swatch
Large preview of the sampled color next to coordinates.
Alpha aware
RGBA string when the pixel is not fully opaque.
Replace image
Swap uploads without leaving the page.
Private processing
No server upload—Canvas reads pixels locally.
How to find hex from a photo
Upload an image
Drop or click in the image panel (15 MB max).
Click a pixel
Use the crosshair on the preview to pick the color you need.
Read the swatch
Check the color panel for HEX, RGB, and HSL values.
Copy a format
Use the copy button beside each field for your design tool or code.
Tips for accurate color sampling
- 01
Click flat areas
Sample the center of solid color regions—avoid anti-aliased edges for cleaner HEX.
- 02
Use PNG for logos
Vector exports give sharper edges than heavily compressed JPEGs.
- 03
Check alpha
If RGB shows rgba(), the pixel is partially transparent.
- 04
Compare multiple clicks
Click several pixels to compare highlights, midtones, and shadows.
- 05
Need a palette?
Use Get Colors From Image for dominant swatches; return here for one exact pixel.
- 06
Replace blurry uploads
Higher-resolution sources reduce compression artifacts in sampled colors.
Color Picker Tools Compared
Get Colors from Image (Uwarp)
Extract a palette of dominant colors instead of one clicked pixel.
Browser DevTools eyedropper
Great on live pages; awkward for arbitrary photo files.
Desktop design apps
Precise but require install; overkill for a quick HEX grab.
This image color picker
Click any pixel on an uploaded image for HEX, RGB, and HSL.
When to sample colors from images
Brand matching
Pull exact HEX from logos or marketing screenshots for palette alignment.
UI design
Sample interface colors from reference mockups.
CSS tokens
Copy HSL or RGB straight into stylesheets or design systems.
Photo references
Note a specific pixel color from inspiration or competitor assets.
Screenshot picks
Grab hex from app UI captures or social posts.
Accessibility checks
Sample foreground colors before pairing with contrast tools.
Why use this image color picker
Exact pixels
Reads the bitmap value—not an averaged region.
HEX and RGB together
Find hex and copy RGB or HSL from the same click.
No install
Works in modern browsers with Canvas 2D.
Fast workflow
Upload, click, copy—no account required.
Coordinates shown
See x/y pixel position for documentation.
Free
Unlimited samples on your own files.
Technical details
- Canvas getImageData
- Single-pixel read at mapped coordinates from the displayed canvas.
- Click mapping
- Pointer position scaled from CSS size to canvas pixel dimensions.
- HSL conversion
- Standard RGB to HSL math for CSS hsl() strings—no HSV or CMYK output.
- Input limits
- 15 MB upload; 8192 px max edge on load.
- Supported inputs
- PNG, JPEG, WebP, and GIF decoded in the browser.
- Browser support
- Chromium, Firefox, Safari with Canvas 2D.
Sources & References
“A color picker is a graphical user interface widget used to select colors.”
Color picker user interface widget: An image color picker (eyedropper) lets users click any pixel in a photo to capture its exact color value. This article describes the UI conventions for color selection widgets. en.wikipedia.org/wiki/Color_picker
“The Canvas API provides a means for drawing graphics via JavaScript and the HTML canvas element.”
Canvas API (client-side pixel read): This tool uses Canvas getImageData to read individual pixel values at the clicked coordinates. MDN documents how to access and interpret bitmap pixel data in the browser. developer.mozilla.org/en-US/docs/Web/API/Canvas_API
“PNG supports lossless data compression, making it useful for storing graphics that need to be edited repeatedly without losing quality.”
PNG image format: PNG's lossless format preserves exact pixel color values, making it ideal for accurate color picking from source images without compression artifacts. w3.org/TR/PNG/
“Color theory is a body of practical guidance for color mixing and the visual effects of specific color combinations.”
Color theory for hue identification: Understanding color models (HEX, RGB, HSL) helps interpret pixel sampling results. The tool presents picked colors in multiple formats for use in design and development. en.wikipedia.org/wiki/Color_theory