This tool runs entirely on your device. Your files and the text you enter are processed by your browser and are never sent to a server.
Image Color Picker
Get any color from an image: open or paste a picture, hover with the magnifier, and click to copy its HEX, RGB or HSL code. It also extracts the image's dominant palette. Your image is never uploaded.
Drop an image here, or paste with Ctrl+V
JPG, PNG, WebP, GIF, AVIF, SVG. The image stays on your device.
Picked color
Open an image, then click it to pick a color.
History
Picked colors appear here.
Export
Open an image to extract its palette.
How to get a color from an image
- Open an image. Drop an image on the page, click Open image, or paste a screenshot with Ctrl+V (Cmd+V on Mac).
- Hover to inspect. Move the pointer over the image. The magnifier loupe zooms in on the pixels and shows the exact color under the crosshair.
- Click to pick. Click, or tap and release on a phone, to pick the color. It is added to your history, and you can copy it as HEX, RGB or HSL.
- Get the palette. Choose 5 to 10 colors to extract the image's dominant palette, then copy it as CSS variables, a Tailwind snippet or JSON.
Features
- Magnifier loupe with a pixel grid and crosshair
- HEX, RGB and HSL values with one-click copy
- History of picked colors
- Dominant color palette of 5 to 10 colors (median cut + k-means)
- Export the palette as CSS variables, Tailwind v4 or v3 snippets, or JSON
- Pick from anywhere on screen with the EyeDropper API in supported browsers
- Open images by drag and drop, file picker or paste
- Keyboard and touch support
- Images never leave your device
HEX, RGB and HSL
- HEX (#RRGGBB) is the usual format for CSS, Figma and most design tools.
- RGB lists the red, green and blue values from 0 to 255.
- HSL gives hue, saturation and lightness, which makes lighter or darker shades easy to write by hand.
To fine-tune a picked color or convert between formats, paste the HEX code into the Color Converter. To build a full scheme around a picked color, use the Color Palette Generator.
Frequently Asked Questions
How do I get the HEX color from an image?↓
Open the image here, hover over the spot you want, and click. The HEX code, such as #3B82F6, appears with a Copy button, together with the RGB and HSL values of that exact pixel.
Is my image uploaded anywhere?↓
No. The image is decoded and read by your own browser with the Canvas API. It is never sent to a server and is discarded when you close the tab.
Can I pick a color from my screen, outside the image?↓
Yes, in Chrome, Edge and Opera on desktop. Click Pick from screen to use the browser's EyeDropper, then click any pixel on your screen, even in another window. Firefox and Safari do not support it yet, so the button is hidden there.
How is the color palette extracted?↓
The tool samples up to about 60,000 pixels, splits them into color groups with the median cut algorithm, and refines the groups with a few rounds of k-means. Each swatch is the average color of its group, sorted by how much of the image it covers.
Why does the picked color differ slightly from the original?↓
JPEG compression blends neighbouring pixels, so a flat area can vary by a few values. The browser may also convert wide-gamut photos to sRGB before reading pixels. Use the loupe to pick from the middle of a flat area, or use a PNG for exact colors.
Related Tools
You might also need
All Image Tools →Color Converter
Convert HEX, RGB and HSL colors.
Color Palette Generator
Color palettes and Tailwind 50–950 shades.
Color Contrast Checker
Check WCAG contrast ratios.
CSS Gradient Generator
Build linear and radial CSS gradients.
Background Remover
Remove image backgrounds with AI in your browser — transparent PNG or new color.
Image Resizer
Change image dimensions by pixels or percent.
Last updated: