Color picker from image: find the HEX code of any color
Click any pixel in a photo or screenshot to get its HEX, RGB, HSL, HSV and CMYK codes, plus the nearest color name. A loupe helps you hit the exact pixel, and every code copies in one click.
What people pick colors from images for
Websites and apps
- Copy a brand color from a logo as a HEX code for your CSS
- Match a button or background color from a website screenshot
- Check that a live page uses the exact colors from the design
- Turn the colors you pick into CSS variables or a Tailwind config
Brands and marketing
- Find a client's logo color when there's no style guide
- Keep slides, social posts and flyers in the same brand colors
- Pick a text or button color that matches a product photo
- Get a CMYK estimate as a starting point for print
Art, crafts and home
- Pick skin, sky or hair colors from a reference photo for a drawing
- Save the colors of a photo you love for a sewing or knitting project
- Get the code of a wall or sofa color before you shop for paint
- Describe a color by name, such as tomato or dodgerblue
How to pick a color from an image
- 1
Add an image
Drop an image in the box at the top of this page, click to choose one, or paste a screenshot. JPG, PNG, WebP, HEIC and other common formats work. No image handy? Click Try a sample.
- 2
Click the pixel you want
Move the pointer over the image. A loupe zooms in on the 15 × 15 pixels around it, so you can see which one you'll get. Click to pick. On a phone, press and drag, then lift your finger.
- 3
Copy the code
Click the copy button next to HEX, RGB, HSL, HSV or CMYK. Each color you pick is also added to Your colors, so you can export them all at the end.
How to find the hex code of a color in an image
Add the image, then click the spot you want. Its hex code shows right away next to a large swatch of the color, ready to copy into a design app, a website or a message.
For a solid pixel, the code is its exact value. It's read from the full-size image, never from a smaller preview, so a tiny detail in a 12 MP photo keeps its true color.
This matters because photos are noisy. Two pixels side by side can differ by a few shades, even in a clear blue sky. The loupe marks the center pixel, so you know which code you'll get before you click.
In a PNG screenshot, the pixels inside a flat area like a button usually share one code. In a JPG, pick away from edges and text, where compression shifts colors the most.
Every code is an sRGB value, the standard for web colors. Some iPhone photos hold a wider range of colors. Those are converted to sRGB, so a very vivid shade can get a slightly duller code.
Pick a color from anywhere on your screen
In Chrome, Edge or Opera on a computer, click Pick from screen. Your pointer becomes an eyedropper tool that reads any pixel on your screen, such as a website, an app or a document. Click a spot, and its codes show here like any other pick.
Firefox, Safari and phone browsers can't read the screen this way, so the button doesn't show there. Take a screenshot instead, then paste it here with Ctrl+V (Cmd+V on a Mac) and pick from it.
On a phone, take a screenshot, then add it from your photos. Either way, there's no browser extension or desktop app to install.
Get HEX, RGB and HSL codes from a photo
Every pick shows the same color in five formats, each with its own copy button. Here's one purple pixel:
- HEX: #8338ec, the short code most websites and design apps use
- RGB: rgb(131 56 236), the amounts of red, green and blue, from 0 to 255
- HSL: hsl(265 83% 57%), the hue, saturation and lightness
- HSV: hue 265°, saturation 76% and value 93%, the model many design apps use in their color pickers
- CMYK: 44% cyan, 76% magenta, 0% yellow and 7% black, as an estimate for print
The HEX, RGB and HSL codes are valid CSS, so they paste straight into a stylesheet. If a pixel is partly see-through, as at the soft edge of a PNG logo, the codes keep its transparency too, and the color is as close as the browser can read it.
Find the name of a color
Each pick also gets a name. The picker finds the nearest of the 148 CSS color names and shows it as Close to, so that purple pixel reads Close to: blueviolet. Use the name to describe a color in words, or paste it into CSS as it is.
Which color code should you use?
Use HEX for most jobs, since websites and most design apps accept it. The other codes help in a few cases:
- RGB when an app asks for separate red, green and blue numbers
- HSL or HSV when you want to make a color lighter, darker or more muted by hand
- CMYK as a rough starting point for print. It comes from a simple formula, not a printer profile, so ask your printer to match the final color
Pick colors from screenshots, logos and photos
Any image works, from a phone photo to a screenshot of a web page. Common jobs:
- Screenshots: copy a screenshot and paste it here to grab a color from a website or an app
- Logos: pick a brand color from a logo file when you don't have the brand's style guide
- Photos: get the color of a sky, a dress or a painted wall from a picture
Save the colors you pick
Every pick joins Your colors, newest first, with room for 24. Copy or remove any color, or clear the list. Then export the whole list as:
- CSS variables to paste into a stylesheet
- A Tailwind config snippet
- JSON with the HEX, RGB and HSL of each color
- A PNG image of your swatches to share
The list is saved in your browser, so it's still there after a reload or when you open another image. It holds only the color codes, never your images. When the list is full, the oldest color drops off.
See the main colors of your image
The picker also shows the 6 main colors of your image. Click one to add it to Your colors. To get the main colors of the whole image as a palette, with 4 to 12 colors, open the palette extractor.
A free online color picker that keeps your images private
This color picker is free, with no sign-up and no account, even to export your colors. Your images open on your phone or computer and are never uploaded. It runs in the browser, so there's no app to download.
- Works on phones, tablets and computers. On a touchscreen, the loupe sits above your finger, so your finger never hides the pixel.
- Works with a keyboard too. Tab to the image, move the crosshair with the arrow keys (Shift moves it 10 px), and press Enter to pick.
- Opens JPG, PNG, WebP, AVIF, GIF, BMP, SVG, HEIC, HEIF and TIFF files up to 50 MB. A GIF uses its first frame.
- iPhone HEIC photos open as they are, with no converting first.
- Works on one image at a time. Open another, and Your colors stays as it is.
Related tools
More free tools for colors, logos and photos
Color Palette Extractor
Get the main colors of a whole image as a palette of 4 to 12 colors, then export it.
QR Code Generator
Make a QR code in your brand colors by entering a HEX code for the code and its background.
Image Metadata Viewer
See a photo's EXIF data, size and color profile, such as sRGB or Display P3.
Make Background Transparent
Remove the background behind a logo or product photo and save it with a transparent one.
Frequently asked questions
Color codes, phones, screen picking and paint colors