- Method 1: Use a Color Picker Extension (Fastest)
- Method 2: Chrome DevTools Inspector
- Method 3: The EyeDropper Web API (For Developers)
- Method 4: Screenshot + Desktop Software
- Understanding What the Color Codes Mean
- Picking Colors from Images Embedded on Websites
- Picking Colors from Videos and Streaming Pages
- Getting Exact Colors vs. Perceived Colors
- Organizing Colors You Pick
- Frequently Asked Questions
- Method 1: Use a Color Picker Extension (Fastest)
- Method 2: Chrome DevTools Inspector
- Method 3: The EyeDropper Web API (For Developers)
- Method 4: Screenshot + Desktop Software
- Understanding What the Color Codes Mean
- Picking Colors from Images Embedded on Websites
- Picking Colors from Videos and Streaming Pages
- Getting Exact Colors vs. Perceived Colors
- Organizing Colors You Pick
- Frequently Asked Questions
You're browsing a website and you spot a perfect shade of teal in their header. Or maybe it's the exact orange used in a CTA button that somehow converts really well. You want that color. You need the hex code.
The problem is that most people don't know there's a fast, precise way to get it. Some try right-clicking images. Some dig into DevTools and hunt through hundreds of CSS rules. Some take screenshots and try to eyeball it in Photoshop.
This guide covers every method — from the fastest (a dedicated extension) to the manual approach — so you always have the right tool for the situation.
Get Any Color Code in One Click
Color Picker & Palette Manager lets you sample any pixel on any website. Free for Chrome.
Add to Chrome — FreeMethod 1: Use a Color Picker Extension (Fastest)
A browser color picker extension adds an eyedropper tool directly to Chrome. It can sample any pixel rendered on screen — backgrounds, images, text, gradients, icons, anything. This is by far the most reliable and fastest approach.
Method 2: Chrome DevTools Inspector
Chrome's built-in developer tools have a color picker, but it works differently. It shows colors assigned via CSS — which means it only works on elements that have a color-related CSS property. You can't use it to sample an arbitrary pixel in an image.
Steps to use the DevTools color picker:
- Right-click the element whose color you want and select Inspect.
- In the Styles panel on the right, look for any CSS property with a color value —
color,background-color,border-color, etc. - Click the small colored square next to the hex or RGB value. A color picker panel opens.
- Within that panel there's an eyedropper icon. Click it to sample any pixel on screen.
- The color value updates in the DevTools panel. Copy it from there.
Method 3: The EyeDropper Web API (For Developers)
If you're building a web app and want to let users pick colors from their screen, Chrome supports the native EyeDropper API introduced in Chrome 95+. This is not something end users invoke manually — it's a JavaScript API.
const eyeDropper = new EyeDropper();
eyeDropper.open().then((result) => {
console.log(result.sRGBHex); // e.g., "#3b82f6"
});
When triggered, the browser shows a native dropper cursor that lets users pick any color from anywhere on their screen. This requires user gesture (like a button click) and works in secure contexts (HTTPS or localhost). The result comes back as a hex string in sRGB space.
Method 4: Screenshot + Desktop Software
If you can't use an extension (for example, in a locked-down browser environment), you can take a screenshot and open it in image editing software:
- Press PrtScn (Windows) or Cmd + Shift + 4 (Mac) to capture the screen.
- Open the screenshot in Photoshop, GIMP, Paint.NET, or even macOS Preview.
- Use the eyedropper tool in the software to click the color.
- Check the color picker panel for the hex or RGB value.
This works but it's slow, requires software, and can introduce slight color shifts depending on how the screenshot is processed. It's the fallback of last resort.
Save Every Color You Pick
Color Picker & Palette Manager keeps a full history of colors you've sampled and lets you organize them into named palettes — great for building brand color systems.
Install FreeUnderstanding What the Color Codes Mean
Once you pick a color, you'll typically see it expressed in three formats. Here's what each one is for:
| Format | Example | Used In |
|---|---|---|
| Hex | #f59e0b | CSS, HTML, design tools (most common) |
| RGB | rgb(245, 158, 11) | CSS, JavaScript, some design tools |
| HSL | hsl(38, 92%, 50%) | CSS, easier for creating color variations |
| CMYK | 0%, 35%, 96%, 4% | Print design, professional publishing |
For web work, hex is the format you'll paste most often. For programmatic color manipulation (like generating tints and shades), HSL is much more intuitive because hue, saturation, and lightness are directly adjustable as separate values.
Picking Colors from Images Embedded on Websites
Images deserve a specific mention because picking from them has a gotcha: JPEG compression and image rendering can slightly alter colors. A logo that looks like a pure white on screen may actually render as #fdfdfd due to compression artifacts around the edges.
Best practices for accurate image color picking:
- Pick from the center of solid areas, not near edges where compression artifacts cluster.
- If the image is a logo, check the brand's official style guide — logo colors are almost always specified there and the rendered pixel value may differ slightly from the official Pantone or hex specification.
- For SVG images, right-click and open in a new tab, then inspect the SVG source for the exact fill or stroke values. SVG stores color as code, not pixels, so it's perfectly accurate.
- Zoom in on the area first before picking, especially for small UI elements.
Picking Colors from Videos and Streaming Pages
Browser color pickers work on video thumbnails with no issues. For actual playing video, pause the video at the exact frame you want, then use the eyedropper. The extension samples whatever is currently rendered on screen, so a paused frame works perfectly.
Note that some video players use DRM-protected content that renders through a separate compositing layer — in those rare cases, the eyedropper may pick a black or blank value over the video area. Pause and try taking a system screenshot first, then picking from that.
Build Palettes from Any Website Automatically
Color Picker & Palette Manager can scan an entire page and extract its dominant color palette in seconds. Perfect for competitive analysis and inspiration.
Try It FreeGetting Exact Colors vs. Perceived Colors
There's a distinction worth understanding: the color you pick is the exact pixel value rendered on your screen. Whether that matches what the designer intended depends on a few factors:
- Monitor calibration: An uncalibrated monitor may display colors differently. The hex value you pick is accurate for your screen, but the same hex may look different on another screen.
- CSS filters: If a parent element has
filter: brightness()ormix-blend-modeapplied, the rendered color differs from the raw CSS color value. The picker captures the final rendered result — which is usually what you actually want. - Transparency/opacity: A semi-transparent element blends with what's behind it. The picker captures the blended color as it appears, not the original RGBA value before blending.
For design reproduction purposes, capturing the rendered color is usually correct. For understanding the original design intent (what the CSS actually says), use DevTools to inspect the specific property.
Organizing Colors You Pick
Picking a single color is just the start. If you're doing design research, reverse engineering a competitor's brand, or building a component library, you'll quickly accumulate dozens of colors. Without organization, they're useless.
A dedicated color picker extension lets you:
- View your full pick history so nothing gets lost
- Group related colors into named palettes (e.g., "Brand Primary," "Competitor Research," "Landing Page Redesign")
- Export palettes as JSON, CSS variables, or Tailwind config format
- Check contrast ratios between picked colors for accessibility compliance
Frequently Asked Questions
How do I find the exact hex color code of any color on a website?
The fastest way is to use a color picker browser extension. Install Color Picker & Palette Manager for Chrome, click the eyedropper icon, then hover over any pixel on the page and click to capture it. You instantly get the exact hex code (e.g., #3b82f6), plus RGB and HSL values. No developer tools needed.
Can I pick a color from an image on a website?
Yes. A browser-based color picker eyedropper samples color from whatever is rendered on screen — including images, gradients, and backgrounds. Hover over any pixel in an image and the picker reads the exact color value at that point. This works for JPG, PNG, SVG, CSS gradients, and video thumbnails.
What is the difference between a color picker and an eyedropper tool?
An eyedropper is the sampling mechanism — it reads the color of a specific pixel on screen. A color picker is the broader tool that includes the eyedropper plus features like color format conversion (hex/RGB/HSL), palette storage, contrast checking, and color history. Most modern color picker extensions include both.
Does picking a color from a website tell me the CSS variable being used?
An eyedropper reads the final rendered color value, not the CSS variable name. To see the CSS variable, you need Chrome DevTools (right-click the element → Inspect → check the Styles panel). However, the color picker gives you the exact color value which is what you actually need to reproduce it.
Why does the color I pick look different when I use it in my design?
This usually happens because of monitor color profile differences, screen calibration, or gamma settings. If you pick #ff0000 on one screen it may look different on another. To minimize this, work in sRGB color space, calibrate your monitor, and always verify colors in the same context (browser vs print vs app).
Can I pick colors from password-protected or login-required pages?
Yes. Because a browser extension operates on whatever is currently rendered in your browser tab, it can sample colors from any page you can view — including authenticated dashboards, local files, or intranet pages. The color picker just reads pixels from the screen, so login state doesn't matter.
Is there a way to pick colors without installing anything?
Chrome DevTools has a built-in color picker when you click a color swatch in the Styles panel. However, it only works on elements with CSS color properties — you can't sample arbitrary pixels. For any pixel on screen, a dedicated extension is the only reliable option without installing separate desktop software.
Ready to Start Picking Colors?
Color Picker & Palette Manager is free, takes 10 seconds to install, and works on every website instantly. Join thousands of designers and developers who use it every day.
Add to Chrome — It's FreeRelated reading: How to Create a Color Palette from Any Website • Hex vs RGB vs HSL: Color Codes Explained • Color Picker Tools Every Web Designer Needs