DoraPDF / Blog

Find the Exact Color Code From Any Image (HEX, RGB, HSL and CMYK)

By the DoraPDF team · 5 min read · Updated 2026-11-25
Find the Exact Color Code From Any Image (HEX, RGB, HSL and CMYK)

You have a logo as a PNG, a screenshot of a website you like, or a photo of a painted wall, and you need the exact color code from the image. Maybe a printer is asking for CMYK, a developer wants the HEX value, or you just want your slides to match your brand. Guessing by eye never quite works. A colour that looks right on your screen can be a few shades off, and those few shades are exactly what makes a design look careless.

This guide follows one practical workflow: pick the colour from the image, convert it into every format you need, and then build a small palette around it. Three free DoraPDF tools cover it.

Step 1: Pick the colour from the image

Open the Image Color Picker and drop in your image. It can be a PNG, JPG, WebP or a screenshot.

  1. The image appears on the page. Your cursor turns into a crosshair over it.
  2. Click the exact spot you want. The tool reads that pixel and shows its HEX, RGB and HSL values.
  3. The HEX code is copied to your clipboard automatically, so you can paste it straight into your design app.

Below the image you also get a row of dominant colours: up to eight swatches showing the main colours in the picture. Click one to copy its HEX code. These swatches are rounded to the nearest broad shade, so they are great for inspiration but less precise than clicking the pixel itself. For an exact brand colour, always click directly on a solid area.

How to get an accurate pick

Step 2: Convert the code to the format you need

Different people ask for different formats:

Paste your HEX code into the Color Code Converter. It accepts HEX, rgb(), hsl() and even CSS colour names like teal, and shows the colour in HEX, RGB, HSL and CMYK at once, with a large swatch. There is also a colour picker on the page if you want to nudge the shade.

A note on CMYK for printing

The CMYK numbers from any simple converter are a mathematical starting point. Real printing depends on the paper, the ink and the printer's colour profile, so bright screen colours (especially vivid blues, greens and pinks) often print duller than they look on screen. For business cards, packaging or signage, send the printer your CMYK values and ask for a proof. If your brand uses a Pantone colour, give them that reference too; there is no exact formula from HEX to Pantone.

Step 3: Build a palette around your colour

One colour is rarely enough. You also need a light background shade, a dark text colour and an accent. Two easy ways to get them:

The generator creates its own random harmonies, so it will not use your picked colour as a starting point automatically. Treat it as a source of companions, and compare them next to your brand colour before you commit.

Where people use this

Common problems and fixes

I get a slightly different code every time I click. You are clicking on a gradient, texture or JPG noise. Use a cleaner image or click the centre of a flat area.

The colour looks different in another app. Screens and apps can show colours differently, especially between wide-gamut phones and normal monitors. The code is the same; the display is not.

The dominant colours do not include my exact shade. They are approximate groupings. Click the pixel directly for the precise value.

Privacy

All three tools run in your browser. Your image is read on your own device, and the colour codes are calculated there, so logos and unpublished designs are not uploaded to our server.

FAQ

Can I pick a colour from a screenshot? Yes. Take the screenshot, then drop the image into the colour picker and click the area you need.

Is HEX the same as RGB? They describe the same colour in different notation. #FF0000 and rgb(255, 0, 0) are both pure red.

Will the CMYK value print exactly like my screen? Not always. Use it as a starting point and ask your printer for a proof, especially for bright colours.

Can I pick colours on my phone? Yes. Open the tool in your phone's browser, choose an image and tap the spot you want.

Try the tools from this guide — free

Keep reading

Guide

Color Palette Generator: Create Matching Color Schemes and Copy the Hex Codes

Generate five-color palettes with one key press, lock the colors you like, shuffle the rest and copy the hex codes for your brand, website or slides.

Guide

Online Case Converter, Find and Replace, Lorem Ipsum and More: 6 Small Writing Tools That Save Real Time

Convert text case, clean spaces, find and replace with regex, generate lorem ipsum, preview email subject lines and posts, and convert color codes, free.

Guide

How to Get a HEX Color Code From an Image (Free Online Color Picker)

Click any pixel in a photo, logo or screenshot to get its HEX, RGB and HSL code. Plus an instant palette of the image's main colours. Free, private.