Pick a colour from an image
Runs in your browser· the image is read in this tab and never uploaded
Drop an image here, paste a screenshot with Ctrl+V, or choose a file (PNG, JPG, WebP, GIF, SVG). Animated GIFs use the first frame.
HEX
RGB
rgb(74, 222, 128)
HSL
hsl(142, 69%, 58%)
CSS Snippets
background-color: #4ade80;color: rgb(74, 222, 128);border-color: hsl(142, 69%, 58%);Nearest Tailwind
green-400
Pick colors from images and convert HEX, RGB, HSL
Load an image or paste a screenshot, click a pixel and get its color as HEX, RGB and HSL, with a loupe for the exact pixel and a list of the image's dominant colors. Convert any color between HEX, RGB and HSL and find the nearest Tailwind CSS class. It runs in your browser: the image is not uploaded.
Frequently Asked Questions
- How do I pick a color from an image?
- Choose an image, drop one on the page, or paste a screenshot with Ctrl+V. Click or tap any pixel to get its HEX, RGB and HSL values; the loupe shows the exact pixel under the pointer. With the image focused, the arrow keys move the pointer and Enter picks.
- Is my image uploaded anywhere?
- No. The browser decodes the image and draws it to a canvas in this tab, and the colors are read from that canvas. The page sends nothing with your image and does not store it.
- Why does a picked color differ from my design tool?
- The page reads pixels as sRGB. A design tool that uses another color profile, or an image that was compressed or resized, can show a slightly different value. Very large images are scaled down to 3,000 px on the longest side before picking.
- What is the difference between HEX, RGB, and HSL?
- They describe the same color differently: HEX (#4ade80) is compact for CSS, RGB expresses red/green/blue channels, and HSL (hue, saturation, lightness) is easiest for humans to adjust systematically.
- How does the nearest Tailwind class work?
- The tool computes the distance between your color and every color in the Tailwind palette, returning the closest match — handy when converting an existing design to Tailwind.
- When should I use HSL instead of HEX?
- Use HSL when you need systematic variations — lightening a hover state or building a palette — because changing one HSL component predictably changes the appearance.
- Does this support alpha (transparency)?
- The converter focuses on opaque colors. For transparency, append an alpha channel in your CSS using rgba() or 8-digit hex once you have the base color.
Related Tools
Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.
Buy me a coffee →