Image Color Picker: Complete Guide
Pick any color from any image with an eyedropper. Learn HEX, RGB, HSL and CMYK codes, the magnifier loupe, swatches, and CSS export — free, in your browser.
Pick an exact color from any photo, logo, or screenshot in four steps. Use the magnifier loupe, build swatches, and export CSS — no install, no upload.
CompressMyPic Editorial Team · Published Nov 17, 2026 · 10 min read

You found the perfect color in a photo or a screenshot, and now you need its code. Guessing wastes time, and a near miss looks wrong next to the original.
This guide walks you through picking a color from an image in four practical steps. You will upload the image, aim with the magnifier, save the color, and export it for your project.
The whole process takes under a minute once you know it. No software to install, no account to create, and no file uploaded to any server.
You need the image that contains the color. A photo, a logo file, a screenshot, or a design mockup all work, in JPG, PNG, WebP, or GIF format.
The file can be up to 20 MB, which covers phone photos and high-resolution screenshots easily. If your file is larger, compress it first or take a fresh screenshot.
You also need a browser. The tool runs on Chrome, Safari, Firefox, and Edge, on desktop and on mobile, with no extension or plugin required.
Finally, know where the color lives in the image. A rough idea of its location saves time, especially in a busy photo with many similar shades.
Open the image color picker and drag your image into the upload area. You can also click the area to choose a file from your device.
If the color is on your screen right now, take a screenshot and paste it with Ctrl+V on Windows or Cmd+V on Mac. The tool accepts clipboard images directly.
The image appears in the picker as soon as it loads. A color is shown immediately, sampled from the center of the picture, so you know the tool is ready.
If you uploaded the wrong file, switch to a different photo from the tool. Your earlier swatches are kept, so you can keep collecting across images if you need to.
Move your cursor over the image and watch the 11 by 11 magnified loupe. It shows a zoomed grid of the pixels around your pointer, with the target pixel in the middle.
Slow down as you approach the color you want. The loupe lets you see the difference between the solid center of a shape and its blended edge.
Aim for the middle of a flat area. A button, a wall, or a block of color is solid in the center and mixed at the borders, so the center gives the true value.
Check the Pixel Inspector as you move. It shows the exact coordinates and the live HEX, RGB, HSL, and CMYK values for the pixel under your cursor.
When the loupe shows the right pixel, click it. The color joins your Picked Swatches tray, and its codes are shown for copying.
Click the HEX code to copy it. HEX is the format most people need, since it pastes straight into CSS, Figma, Canva, and most design tools.
Collect every color you need before leaving the page. A full set might include the main color, an accent, a background, and a text color from the same image.
If two swatches look identical, the tool will not save a duplicate. Clicking the same HEX value twice leaves you with one clean entry, not two.
When your swatches are complete, click Export CSS. The tool downloads a file with your colors as CSS custom properties, ready to paste into a stylesheet.
If you only need one color, copy its HEX code directly from the inspector instead. That is faster than downloading a file for a single value.
For print work, note the CMYK values shown for each pick. They are a starting approximation, useful for briefing a print designer before a proper conversion.
Test the color in your project right away. Paste the code, view it next to the original image, and confirm it matches before you build anything on top of it.
Photos need a slightly different touch than flat graphics. Camera noise and JPEG compression mean neighboring pixels vary, so one click is rarely the full story.
Sample the same area three or four times, moving a pixel or two each time. If the codes agree on the first five digits, you have found the real color.
Pick from the largest flat area you can find. A clear sky, a painted door, or a solid shirt gives a far steadier reading than a textured surface.
Stay away from bright highlights and deep shadows. Those zones lose color information, and the code you read there is often just white, black, or gray.
Logos demand precision, because a brand color that is one digit off still looks wrong. Start with the highest-quality logo file you have, ideally a PNG.
PNG files store exact colors, so the reading is trustworthy. JPEG logos carry compression noise, which can shift the last digit of the HEX code.
Sample the center of the largest flat shape in the logo. The middle of a letter or a block is solid, while the edges blend into the background.
Verify the result by placing the picked color next to the logo on the same screen. If they match, you have the brand color. If not, try a pixel or two inward.
Screenshots are the fastest source for UI colors. Capture the screen, paste it with Ctrl+V, and sample the button, header, or background directly.
Use the loupe carefully on screenshots. Interface elements have anti-aliased edges, so the border pixels are a blend of the element and the background.
For text colors, sample the thickest part of a letter, such as the middle of a bold stroke. Thin text is mostly edge pixels, which read as blends.
Note the pixel coordinates while you work. If a teammate questions a value, the coordinates let you both return to the exact same spot and confirm it.
On a touchscreen you tap instead of clicking, and the same loupe and swatch tools apply. Upload the image from your gallery or paste a screenshot.
Your fingertip covers many pixels, so zoom the image first. A larger image gives you a bigger target and a better chance of hitting the right pixel.
Use the loupe to confirm before you tap. It shows what sits under your finger, which you cannot see while your finger is on the screen.
For a color that must be exact, such as a brand color, do the final check on a desktop. A mouse click on one pixel is more reliable than a fingertip tap.
If the picked color looks too light or too dark, you probably sampled a highlight or a shadow. Move toward the middle of the shape and try again.
If the color looks muddy, you likely caught an anti-aliased edge. Move one or two pixels inward, where the color is solid and unmixed.
If the HEX code changes every time you click, the area is noisy. Sample several nearby pixels and use the value that appears most often.
If the color looks right in the picker but wrong in your design tool, check the code you pasted. A missing digit or a swapped character is the usual cause, not the picker.
In a website, paste the HEX code into your CSS or use the exported custom properties. The variable approach keeps your colors consistent across the whole site.
In Figma, Canva, or Photoshop, paste the HEX code into the color field. Every major design tool accepts HEX, so the value transfers without conversion.
For a slide deck or a document, use the RGB values. Office tools often show color as three numbers, and the RGB readout matches that format exactly.
For print, start from the CMYK approximation and confirm with your printer. Screens and printers reproduce color differently, so a test print is worth doing.
One image can supply a whole palette. Pick the dominant background color, the main subject color, one accent, and a dark tone for text.
Keep the count small. Four to six colors are enough for most designs, and more than that usually makes a layout look scattered.
Check the swatches together before exporting. If two colors are nearly identical, drop one. If the set feels unbalanced, swap one pick for a lighter or darker tone.
When you want the whole-image view instead, try the image color palette extractor. It ranks the dominant colors automatically, which is a fast way to compare against your hand-picked set.
Charts and graphs use color to separate data series, and matching those colors matters when you build a report or a dashboard around the same data. The picker can recover every series color from a chart image.
Sample the middle of each bar, line, or pie slice, well away from the edges where colors blend into the background. A thick bar is easy to sample, while a thin line needs the loupe to hit its center.
Work through the legend first, because the legend usually shows each series color as a solid block. Those blocks are the cleanest samples in the whole chart.
If two series colors look almost identical, check their HEX codes before deciding. Colors that look the same on screen can differ by enough to matter when they sit side by side in your own chart.
Save the series colors in order, matching the order of the legend. That way your new chart keeps the same color-to-series mapping, and readers who saw the original will not get confused.
For dashboards, also pick the background and gridline colors. A dashboard that reuses the original background and grid tones looks intentional, while one that guesses them looks slightly off.
Picked colors are only useful if you can find them again later. The Export CSS download is the simplest way to save a set, because it stores every swatch in one file with clear variable names.
Name your export file by project, not by date. A file called homepage-refresh-colors.css is useful months later, while colors-2026-11-17.css tells you nothing about where the colors belong.
If you use a design tool, paste the HEX codes into its color styles or variables panel as well. Keeping the same values in both the stylesheet and the design file prevents the two from drifting apart.
For brand colors, record the RGB and CMYK values next to the HEX code in your brand guide. Different teams need different formats, and a guide that lists all of them stops people from converting values on the fly and making mistakes.
Keep a short note with each palette about where the colors came from. A line such as sampled from the autumn campaign photo tells a future designer why these colors belong together.
Finally, back up your exported CSS file with the rest of the project. A palette that lives only in a browser tab disappears the moment the tab closes, and re-picking the same pixels twice is a waste of time.
Upload the cleanest original file you have, not a screenshot of a screenshot. Each extra save can shift colors slightly.
Aim with the loupe, sample the center of flat areas, and click two or three nearby pixels to confirm the value.
Copy the HEX code for web and design work, the RGB values for documents, and the CMYK approximation for print briefs.
Export CSS when you have more than one swatch, and verify the color in your project before building on it. For the full background, read the Image Color Picker: Complete Guide and the code-format comparison in HEX vs RGB vs HSL: Colour Codes Explained.
Pick any color from any image with an eyedropper. Learn HEX, RGB, HSL and CMYK codes, the magnifier loupe, swatches, and CSS export — free, in your browser.
HEX, RGB, HSL, and CMYK describe the same color in different ways. Learn what each format means, when to use it, and how to convert between them.
Turn photos into design palettes that actually work: the 60-30-10 rule, dominant vs accent, contrast, brand use, and the mistakes that make palettes muddy.
Extract a colour palette from any photo in five steps: upload, pick 3–12 swatches, read the percentages, and copy CSS or JSON — free, in your browser.