Colour Picker: Get HEX, RGB and HSL Codes from Any Image
Drop in a photo, logo or screenshot, click the exact pixel you want, and copy its colour code in HEX, RGB or HSL.
- Runs in your browser
- No upload, no account
- Free and unlimited
- HEX, RGB and HSL
- 8-colour palette
This free colour picker (or color picker, in American spelling) reads the exact colour of any pixel in your image. Click a spot to get its HEX, RGB and HSL values, each with a copy button, and get the picture's eight main colours as a HEX list or CSS variables. Everything runs in your browser, so the image never leaves your device.
How to pick a colour from an image
1. Add an image
Drop a JPG, PNG, WebP, GIF or BMP file, click to browse, or paste a screenshot with Ctrl+V.
2. Hover to preview
Move the pointer over the picture; the colour under it is shown live below the image.
3. Click to pick
Click or tap the pixel you want. Its HEX, RGB and HSL codes appear at once.
4. Copy the code
Press the copy button next to the format you need, or copy the whole palette.
What this free tool does
Pixel-exact picking
The colour comes from the full-size image, not a blurred preview, so you get the real value of that pixel.
Three formats
HEX for the web, RGB for code and design apps, HSL for building lighter and darker shades.
Automatic palette
The eight dominant colours, ready to copy as a HEX list or as CSS custom properties.
Screen eyedropper
In Chrome and Edge on a computer, pick a colour from any window, not only from an uploaded file.
Recent picks
Your last twelve colours stay as swatches, so you can compare them and go back to one.
Private by design
The image is read on your device. Nothing is uploaded, stored or shared.
Who uses it
Web designers
Match a client's logo or photo to a HEX code for CSS.
Brand and marketing
Keep slides, posts and print in the same colours.
Developers
Grab a colour from a screenshot of a mockup or bug report.
Makers and decorators
Find the code of a paint, fabric or room colour in a photo.
Free vs Pro: what you pay for
Free · this tool
Colour Picker from Image
- Unlimited colour picks
- Runs in your browser, no upload
- Palette as HEX list or CSS variables
- No account, no watermark, no credits used
Pro credits · Pro AI tools
Enhance, upscale, restore
- Credits are only for Pro AI processing
- 5 free Pro credits every week with an account
- Charged only when a job succeeds
- Format tools like this one stay free

What a colour picker from an image does
A digital image is a grid of pixels, and every pixel stores one colour as three numbers: how much red, green and blue light it contains. A colour picker simply reads those numbers at the point you click and writes them out in the formats people use every day. There is no guessing or matching against a list of named colours, so the result is the value that is actually in the file.
Use it whenever you can see a colour but do not know its code: the red in a logo, the background of an app in a screenshot, or a sofa you want to match with paint.
Pick from an image or from your screen
In Chrome or Edge on a computer, a button turns the pointer into an eyedropper for the whole screen, so you can pick from another tab or app without a screenshot. Other browsers show a short tip instead; picking from an uploaded image works everywhere, including phones.

HEX, RGB and HSL explained
All three describe the same colour in sRGB, the standard colour space of the web. Each is handy for a different job.
- HEX: a # and six characters, two each for red, green and blue in base 16 (00 to FF). The shortest form, used by most style guides.
- RGB: the same three amounts as numbers from 0 to 255, such as rgb(229, 56, 59). Easy to read in code and design apps.
- HSL: hue as an angle from 0 to 360 degrees, then saturation and lightness as percentages. To make a tint or shade, change only the lightness.
Common colours in each format
Any of these values can be pasted into CSS and gives the same result.
| Colour | HEX | RGB | HSL |
|---|---|---|---|
| EnhancerPro red | #E5383B | rgb(229, 56, 59) | hsl(359, 77%, 56%) |
| Deep red | #C1121F | rgb(193, 18, 31) | hsl(356, 83%, 41%) |
| White | #FFFFFF | rgb(255, 255, 255) | hsl(0, 0%, 100%) |
| Black | #000000 | rgb(0, 0, 0) | hsl(0, 0%, 0%) |
| Middle grey | #808080 | rgb(128, 128, 128) | hsl(0, 0%, 50%) |
| Navy | #1D3557 | rgb(29, 53, 87) | hsl(215, 50%, 23%) |
| Forest green | #2E7D32 | rgb(46, 125, 50) | hsl(123, 46%, 34%) |
How many colours can a HEX code describe?
Each channel has 256 values, so a HEX code can describe 256 × 256 × 256 = 16,777,216 colours. Two colours that look identical can differ by a step or two, which is why picking the exact pixel beats matching by eye.
Getting an accurate colour
In real photos, light, shadow, noise and compression make neighbouring pixels differ slightly, even on a wall that looks even. A few habits help.
- Pick from a flat, evenly lit area, away from edges, highlights and shadows.
- Hover first, then click where the live preview is steady, and compare a few nearby points in Recent picks.
- For an overall colour, use the palette; it averages similar pixels.
- Use the original file when you can; messaging apps often recompress images.
Why a JPEG can give slightly different values
JPEG approximates small blocks of the picture, which shifts colours a little, especially around edges and text. PNG and lossless WebP keep every pixel exactly, so for a precise brand colour use the PNG or SVG logo, or check the brand guidelines.
Colour profiles and screens
Some phone photos use a wider profile such as Display P3. Your browser converts them to the web colour space first, so the code you copy is what a web page would show. Screens may still display a code slightly differently; the value itself does not change.
Build a colour palette from a photo
When you add an image, the tool groups similar pixels into eight dominant colours. Click a swatch to load its codes, use Copy HEX list for all eight, or Copy as CSS variables to get lines like --color-1: #E5383B; for a stylesheet.
A photo palette makes a page or post feel connected to its main picture: a calm colour for backgrounds, a strong one for buttons, the rest as accents.
Check contrast before you use a colour for text
A colour that looks great in a photo may be hard to read as text. The Web Content Accessibility Guidelines (WCAG) measure contrast from 1:1 to 21:1 and set these minimums.
| Content | WCAG AA minimum | WCAG AAA minimum |
|---|---|---|
| Normal body text | 4.5:1 | 7:1 |
| Large text (24 px, or about 18.7 px bold) | 3:1 | 4.5:1 |
| Icons, input borders and other interface parts | 3:1 | Not defined |
A worked example
Our red, #E5383B, has a contrast ratio of about 4.2:1 on white: fine for large headings, just short of the 4.5:1 needed for body text. The darker #C1121F reaches about 6.2:1, so it suits links and small type. Check your picked colours the same way before you publish.
Using the codes in other apps
Once you have copied a code, it works almost anywhere.
- CSS and HTML: paste the HEX, rgb() or hsl() value directly into a colour property.
- Figma, Canva, Photoshop and Illustrator: paste the HEX code into the colour field.
- Word, PowerPoint and Google Slides: open custom colours and enter the HEX code or the three RGB numbers.
- Print: ask your printer to match the colour, because screen colours have to be converted to ink, and that conversion depends on the paper and press. This tool deliberately does not show a CMYK value it cannot know.
Privacy and limits
The image is drawn on a canvas on your own device and never uploaded or stored, so unreleased designs and private screenshots stay private. The tool is free, unlimited and uses no EnhancerPro credits.
Files can be up to 50 MB. Animated GIFs show their first frame. Fully transparent pixels in a PNG read as black, so pick from an area that is visible.
Frequently asked questions
Related tools
- Image to SVGTurn a logo into flat colour shapes.
- Favicon generatorMake site icons in your brand colours.
- Remove backgroundCut out a product, then match its colour.
- Image cropperCrop to the area you want to sample.
- Image converterSave a lossless PNG for exact colours.
- AI photo enhancerClean up a noisy photo before picking.
Need sharper, bigger or restored photos?
Our AI tools enhance, upscale and repair images for free on your device, with optional Pro AI processing on credits.