Image Color Picker
Pick HEX, RGB, and HSL colors from any pixel in an image.
Your files are not uploaded to a server. All processing is performed locally in your browser.
Drop an image here
or
You can also paste an image (Ctrl / ⌘ + V)
Add an image to pick colors from its pixels.
Wheel: zoom around the pointer / Drag: move the zoomed image / Click: select a color
Tap to pick a color / Pinch to zoom / Drag with one finger when zoomed / Scroll vertically at fit size.
Color history
No colors selected yet.
Copy up to 10 selected colors or save them as CSS custom properties.
What this image color picker does
Select an exact pixel from a JPG, PNG, or WebP image and view its HEX, RGB, HSL, and alpha-aware color codes. Use it with photographs, illustrations, logos, or screenshots without uploading the image to a server.
Preview a color, click or tap to add it to your recent selections, and export up to ten selected colors as a small CSS palette.
Common uses
Match your website background or button colors to a logo, inspect a palette from a banner, or reuse a screenshot color in CSS. For pixel art or thin lines, zoom in and select individual source pixels.
Build a small collection by selecting several locations. Selecting a history swatch brings the marker and magnifier back to that source position.
How to pick a color
- Choose one JPG, JPEG, PNG, or WebP file, or drag it onto the upload area. Supported browsers also accept a copied screenshot or image with Ctrl / ⌘ + V.
- Move over the image to preview a pixel and its original X/Y coordinates. Click or tap to add that color to the selection history.
- Use Fit image, Actual size (100%), the zoom buttons, or the mouse wheel to inspect details; the pixel magnifier shows the region around your selection.
- Click a HEX, HEX8, RGB, RGBA, HSL, or HSLA row to copy the value currently shown in the panel.
- For multiple selections, revisit a history swatch, copy the color list, or save it as a CSS file.
HEX, HEX8, RGB, HSL, and alpha
HEX is a six-digit #RRGGBB color such as #336699. RGB represents red, green, and blue as numbers, such as rgb(51, 102, 153); HSL describes hue, saturation, and lightness. These three formats do not include transparency.
HEX8 adds two alpha digits at the end (#RRGGBBAA); for example, #33669980 is about half opaque. RGBA and HSLA use an alpha value between 0 (fully transparent) and 1 (opaque). Decimal alpha is displayed rounded to three places, whereas HEX8 preserves the original 8-bit alpha value.
Zooming and single-pixel selection
Fit image scales the whole image into the viewport. Actual size (100%) shows one source pixel at one display pixel; additional zoom and panning let you inspect finer details without changing the source data.
On a computer, focus the image and use arrow keys for single-pixel movement or Shift+arrow keys for ten-pixel movement. Press Enter or Space to select the color. X/Y coordinates refer to the original image, starting at (0, 0) in the top-left corner.
History and exporting a CSS palette
The ten most recently selected unique RGBA colors are kept in history, including separate entries for different alpha values. Re-selecting a color moves it to the front. Click any history item to restore its source position and magnified view.
Copy color list produces one HEX or HEX8 value per line. Save CSS downloads picked-colors.css with custom properties named --picked-color-1, --picked-color-2, and so on. History is temporary and resets when another image loads, so export colors you want to keep.
Mobile and clipboard tips
On touchscreens, tap to pick a color, pinch with two fingers to zoom, and drag with one finger when enlarged. At fit size, you can scroll the page vertically over the image.
If the browser blocks copying, a manual text field appears with the exact code or color list already selected. You can copy its contents manually.
Supported files, limits, and privacy
JPG, JPEG, PNG, and WebP are supported up to 10,000 pixels per side and 50 million pixels total. Large images may still fail due to your device's memory limits. Animated images are not analyzed frame by frame.
Processing takes place in your browser, including CSS palette generation. Pixel sampling uses the browser Canvas API, so embedded color profiles and RGB data beneath fully transparent pixels may differ from raw file bytes.
FAQ
How do I pick a color from an image?
Add a JPG, PNG, or WebP file and click or tap the pixel you want. The panel shows color formats, original pixel coordinates, and alpha.
Can I paste a screenshot?
Yes, in supported browsers. Copy a screenshot or JPG, PNG, or WebP image and press Ctrl / ⌘ + V. Text-only paste and paste into editable fields are left alone.
How do I use the color in CSS?
Copy a HEX or RGBA value into a CSS property such as background-color. You can also save multiple selections as a CSS file with custom properties.
What is the difference between HEX and HEX8?
HEX is #RRGGBB without transparency. HEX8 adds an AA pair at the end, in #RRGGBBAA order; 80 means approximately 50% opacity.
When should I use RGBA or HSLA?
Use RGBA or HSLA when a CSS color needs transparency. Alpha 0 is invisible and 1 is fully opaque.
Does it work with transparent PNG files?
Yes. It shows the RGBA values returned by Canvas. RGB channels stored under fully transparent pixels may be lost during browser rendering.
Can I move one pixel at a time?
Yes. Focus the image, move with arrow keys, use Shift+arrow for ten-pixel steps, and press Enter or Space to select.
How many colors can I keep in history?
Up to ten recent, distinct RGBA colors. The history resets when a new image loads.
How can I export the palette?
Copy color list yields newline-separated HEX/HEX8 values. Save CSS downloads picked-colors.css with variables such as --picked-color-1.
Can I use it on a phone?
Yes. Tap to select, pinch to zoom, and drag the zoomed image with one finger.
Which formats and image dimensions are supported?
JPG, JPEG, PNG, and WebP; up to 10,000px per side and 50 million pixels total. Device memory can impose a lower practical limit.
Are my images uploaded?
No. Image loading, pixel sampling, codes, and CSS exports are all handled in your browser.
Why did the copy button fail?
Clipboard permissions vary by browser. If copying fails, select and manually copy the code from the fallback text field.