Identifying the exact code of a color is a constant need in design: matching the color of a reference logo, extracting a palette from an inspiration photo, keeping consistency across different pieces of a visual identity. Depending on the context — whether you have access to the file, whether the color is in an online image, on a website, or in a photo taken with your phone — the most efficient method varies.

Understanding color code formats

Before getting into the methods, it's worth understanding the three most common formats for representing colors digitally:

FormatExampleWhere it's used
HEX#3ecf8eCSS, HTML, web design, most design tools
RGBrgb(62, 207, 142)CSS, image editing, digital printing
HSLhsl(152, 57%, 53%)CSS, color manipulation in design, tone adjustments
CMYKC:70 M:0 Y:31 K:19Graphic printing (flyers, cards, packaging)

HEX and RGB represent the same information in different formats — you can always convert from one to the other. HSL describes color in terms of hue, saturation, and lightness, which is more intuitive for manual adjustments. CMYK is exclusive to printing.

Method 1: Online color extractor (the fastest)

To identify the dominant colors of an entire image — or precisely locate a specific pixel — an online color extractor is the most direct solution. Just upload the image and the tool automatically identifies the most prominent colors, with HEX codes ready to copy.

ImageTools' Color Extractor analyzes any photo or image and returns the dominant colors with their HEX codes. Everything runs directly in your browser — the image never leaves your device.

  1. Open the color extraction tool.
  2. Upload the image or drag the file into the indicated area.
  3. The tool automatically identifies the most prominent colors in the image.
  4. Click any color to copy its HEX code.

🎨 Extra tip: after extracting the dominant colors from an image, use the Palette Generator to create complementary, analogous, or monochromatic harmonies from any of those colors — and expand your project's palette.

Extract the colors from any image now

Upload a photo and get the HEX codes of the dominant colors in seconds. Free, no sign-up, processed in your browser.

Extract colors from image

Method 2: Using your browser's eyedropper (Chrome DevTools)

If the color you want to identify is on a website — the background of a page, a button, a logo — Chrome has a built-in tool for that.

  1. Open the site in Google Chrome.
  2. Press F12 (or right-click and choose "Inspect").
  3. In the DevTools panel, click the cursor icon in the top-left corner (or press Ctrl+Shift+C).
  4. Hover over any element on the page — DevTools will show the CSS properties, including colors in HEX or RGB.
  5. To open the visual color picker, click the colored square next to any color value in the CSS panel.

Chrome DevTools also has a built-in Color Picker: clicking the color square in the CSS styles panel opens a picker that lets you browse the spectrum and see values in HEX, RGB, HSL, and HSLA all at once.

Method 3: Eyedropper in Canva

If you're working in Canva and want to capture a color from an image already in your project:

  1. Select the element whose fill you want to change (a text, shape, or background).
  2. Click the element's color in the side panel to open the color picker.
  3. In the picker, click the eyedropper icon.
  4. Click any point on the image in the canvas to capture the exact color of that pixel.
  5. The HEX code will show up in the picker's text field.

Method 4: Eyedropper in Photoshop and Illustrator

Photoshop

With the image open, select the Eyedropper tool (shortcut: I). Click any point on the image — the captured color shows up in the color box in the tools panel. To see the HEX code, double-click the color box (opens the Color Picker) and the HEX value appears in the bottom-right field.

Illustrator

With the file open, select an object, then click the fill or stroke color in the tools panel. In the Color Picker that opens, the HEX code is in the bottom field. Alternatively, use the Eyedropper tool (shortcut: I) to pick up the color from any point on the canvas.

Method 5: Browser extension — ColorZilla

The ColorZilla extension (available for Chrome and Firefox) adds a permanent eyedropper to your browser. With it installed, you can:

It's the most practical solution for anyone who needs to capture colors from websites often, without opening DevTools every time.

Method 6: Color-capture apps on your phone

To identify colors from physical objects — a wall, a product, packaging — or from images on your phone, there are dedicated apps:

How to use the extracted color codes

Once you've identified a color's HEX code, the most common applications are:

In CSS / web development

Use it directly in your code: color: #3ecf8e; or background-color: #3ecf8e;. For lighter or darker variants, use HSL — it's much more intuitive to adjust lightness than to manipulate HEX values by hand.

In Canva, Figma, or Adobe

Paste the HEX code into the color field of any element. All major design tools accept HEX directly.

To build a full palette

With the base color identified, the Color Palette Generator automatically produces harmonious combinations — complementary, analogous, triadic, and monochromatic — with all the codes in HEX, RGB, and HSL ready to use in your project.

For printing

Convert HEX to CMYK before sending to the printer. On-screen colors (RGB/HEX) and printed colors (CMYK) have different gamuts — what looks identical on your monitor can show a visible shift once printed. Tools like Adobe Illustrator and Affinity Designer handle this conversion automatically when exporting for print.

Why the extracted color may not be exactly what you wanted

An important detail: photographic images rarely have a perfectly uniform color across an area. What looks like a solid blue in a photo can have dozens of subtle pixel-to-pixel variations, caused by lighting, JPG compression, and camera noise. The eyedropper captures the exact color of one specific pixel — which can be slightly different from the "overall blue" you're trying to identify.

For photographic areas, it's best to use an extractor that calculates the dominant color of a region — like the Color Extractor does — instead of capturing a single pixel. The result is a more representative color, and more useful for design work.

Frequently asked questions

How do I find the color of a website without inspecting the code?
Install the ColorZilla extension on Chrome or Firefox. With it enabled, just click anywhere on any site to capture the HEX code of the color at that pixel. It's the fastest way, no need to open DevTools or know CSS.
How do I get the exact color of a competitor's logo?
If the logo is on their website, use the DevTools eyedropper (F12 on Chrome) or the ColorZilla extension. If you only have an image of the logo, use ImageTools' Color Extractor or the eyedropper in Canva or Photoshop. Keep in mind professional logos usually have a defined color system — check the company's brand manual if you want the official values.
What's the difference between HEX and RGB? Do I need both?
HEX and RGB represent exactly the same information — they're just different notations. HEX #3ecf8e and RGB 62, 207, 142 are the same color. For web design and CSS, use HEX (more common and shorter). For applications that need the three channels separate — some printing platforms, editing apps — use RGB. Any tool converts between the two in seconds.
How do I find the color of a photo taken with my phone?
The most practical way is to use ImageTools' Color Extractor: open the site in your phone's browser, upload the photo, and get the HEX codes of the dominant colors. Alternatively, upload the photo to Canva and use the eyedropper inside the editor.
Can I use the colors of a famous brand in my design?
Technically, color codes aren't protected by copyright — a color itself isn't anyone's exclusive property (with rare exceptions for registered color trademarks, like Hermès orange or Louboutin red). What's protected is the logo and the visual identity as a whole. Using a color similar to an established brand's is a strategic issue, not a legal one — but it can create confusion or unwanted associations with the original brand.
How do I create a color palette from a photo?
Use the Color Extractor to identify the photo's dominant colors, then pick the main color and use the Palette Generator to create harmonious combinations from it. This is a technique widely used in design to build visual identities inspired by reference photos.