You’ve found the perfect shade of teal in a photo, or a client has sent a screenshot of their logo and you need the HEX code. Getting the exact color out of an image takes about ten seconds once you know how. This guide covers how to do it, and how to avoid the small mistakes that give you a color that is almost, but not quite, right.
Quick steps
- Open the image color picker.
- Click Upload image, drag a file onto the picker, paste a screenshot with Ctrl+V (⌘+V on Mac), or paste the image’s web address.
- Move your cursor over the image. The magnifier shows the pixels under your pointer and the preview swatch updates live.
- Click to select a color. On a phone or tablet, tap the image or drag your finger across it.
- Press Copy next to the format you need: HEX, RGB, HSL, HSV or CMYK.
Below the picker you will also see the image’s palette: its most common colors, ranked by how much of the picture they cover. If you want the overall color scheme rather than one specific pixel, this is often the quicker route.
Ways to load an image
Upload from your device
Any format your browser can display will work: JPG, PNG, WebP, GIF, SVG, AVIF and more. Uploaded images are read directly in your browser and are never sent to a server, so it is safe to use confidential designs or unreleased work.
Paste a screenshot
This is the fastest method for colors on a website or in another app. Take a screenshot to your clipboard, then paste it straight into the page. You don’t need to save a file first.
- Windows: Win+Shift+S, select an area, then paste.
- Mac: ⌘+Ctrl+Shift+4 copies a selected area to the clipboard.
- ChromeOS: Ctrl+Shift+Show windows, then paste.
Paste an image link
Right-click an image on any website, choose Copy image address (or “Copy image link”), and paste it into the URL box. Make sure you copy the address of the image itself, not the page it is on. A direct image link usually ends in something like .jpg, .png or .webp.
Pick from anywhere on screen
In Chrome, Edge and Opera on desktop you’ll also see a Pick from screen button. It opens the browser’s built-in eyedropper, which can sample any pixel on your display, including other windows and desktop apps.
How to get an accurate color
Photographs and compressed images are made of millions of slightly different pixels. Picking one at random can give you a color that is noticeably off. Follow these tips:
- Use the magnifier. Aim for the middle of a flat area of color and check that the surrounding pixels in the loupe look similar.
- Avoid edges. Text, icons and shapes have anti-aliased edges, a row of blended pixels that smooths out jagged lines. These are a mix of the foreground and background, not either color.
- Avoid highlights and shadows. In photos, the “true” color of an object is usually in the areas lit by soft, even light, not in reflections or deep shade.
- Use the best quality image you can find. Heavily compressed JPEGs create blocky artefacts and color shifts, especially around sharp edges and in red areas. A PNG or a large, high-quality JPEG gives more reliable results.
- Sample a few points. Click several spots and compare them in the “Recently picked” list. If they differ, the palette below usually shows the averaged, dominant version.
Why the color looks different from what you expected
Lighting and camera processing
A photo of a red car isn’t one shade of red. Lighting, reflections, white balance and the camera’s own processing all change the recorded color. The picker reports exactly what is in the image file, which may not match the physical object. If you need to match a physical paint or fabric, use a sample swatch or a dedicated colorimeter.
Image compression
JPEG compression saves space by throwing away color detail that the eye is less sensitive to. Areas that look flat can contain dozens of slightly different values. Saving a JPEG repeatedly makes this worse.
Color profiles
Some images are saved with a wide-gamut color profile such as Display P3 (common on iPhones) or Adobe RGB. Browsers convert these to your screen’s color space before showing them, so the values you pick are the sRGB equivalents, the standard used on the web. These can differ slightly from the values shown in professional photo editors working in the original profile.
Your screen
Two monitors can show the same HEX code quite differently depending on their calibration, brightness and panel type. The code itself is still correct. It is the display that varies.
How to find a logo’s exact color
Brands usually have official colors defined in a brand guideline. Before picking from a screenshot, check whether the official value is available:
- Search for “[company] brand guidelines” or “[company] press kit”. Many companies publish their HEX, RGB, CMYK and Pantone values.
- If the company’s website uses the color, it will be in the site’s CSS. Right-click an element in that color and choose Inspect to see the exact value.
- If neither is available, use the highest-quality version of the logo you can find, ideally an SVG or large PNG, and pick from the centre of a solid area.
Logo files saved as SVG contain exact color values, with no compression or anti-aliasing in the middle of shapes. Picking from an SVG almost always gives you the precise brand color.
Other methods
- Browser developer tools: Chrome, Edge and Firefox include an eyedropper inside the color picker of the Styles panel. It is handy if you are already inspecting a site.
- macOS Digital Color Meter: a built-in utility (in Applications → Utilities) that shows the RGB value under your cursor anywhere on screen.
- Windows PowerToys Color Picker: a free Microsoft add-on. Press Win+Shift+C to pick a color anywhere on screen.
- Design apps: Photoshop, Figma, Canva and most other design tools have an eyedropper tool, usually on the I key.
A browser-based picker like ours has a few advantages: there is nothing to install, it works on any device, it shows all five formats at once, and it extracts the full palette automatically.
Once you have your colors, learn how to turn them into a complete palette, or check that text will be readable with the contrast checker.