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.
- The image appears on the page. Your cursor turns into a crosshair over it.
- Click the exact spot you want. The tool reads that pixel and shows its HEX, RGB and HSL values.
- 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
- Click the middle of a solid area, not the edge. Edges of logos and text are blended with the background (anti-aliasing), so a pixel on the edge is a mix of two colours.
- Use the cleanest file you have. A PNG export of a logo is far better than a JPG screenshot. JPG compression adds small colour shifts, especially around sharp edges.
- Avoid photos for brand colours. A photo of a printed sign includes lighting, shadow and camera white balance. You get the colour of the photo, not the colour of the paint.
- Click two or three spots. If they return slightly different codes, the area is not truly flat, and you will need to pick the value that looks most typical.
Step 2: Convert the code to the format you need
Different people ask for different formats:
- HEX (like
#1A73E8) is what web designers, Canva and most apps use. - RGB (like
rgb(26, 115, 232)) is the same colour written as red, green and blue values from 0 to 255. - HSL (hue, saturation, lightness) is handy when you want a lighter or darker version of the same colour.
- CMYK (cyan, magenta, yellow, black percentages) is what print shops usually ask for.
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:
- Adjust lightness in HSL. Keep the hue and saturation, raise the lightness for a soft background tint, lower it for a deep version for headings. Type the new
hsl()value into the converter to get the HEX. - Use the palette generator. The Color Palette Generator creates five matching colours each time you press the space bar or the Generate button. Lock any colour you like with the padlock icon and keep shuffling the rest. Click a colour to copy its code, or copy all five at once.
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
- Matching slide and document colours to a company logo.
- Giving a web developer the exact HEX values from a design mockup.
- Recreating a colour from an old flyer when the original design file is lost.
- Choosing wall, fabric or product colours from a reference photo (as a rough guide only).
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
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.
GuideOnline 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.
GuideHow 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.