Copy & Graphic Design

What Is a HEX Color? Plus Tips to Find It Quick!

Rows of glossy 3-D squares, each blending several bright colors, on a black background.

A HEX color is a 6-character code, written after a # sign, that tells screens exactly which color to show, such as #FD2BA9 for hot pink. The 6 characters are 3 pairs that set the amount of red, green and blue in the color. HEX codes are the standard way to specify colors for websites and digital design.

If you have ever needed to match a brand color on your website, in Canva or in a social post, the HEX code is what you need. Here is how it works, and the quickest ways to find any color’s HEX code.

The short version

  • A HEX code is # plus 6 characters, like #0068C9.
  • Each pair sets red, green or blue, from 00 (none) to FF (full).
  • HEX is for screens. Print uses CMYK or Pantone.
  • You can find any color’s HEX code in seconds with free tools.

How to read a HEX color code Example: the iMillerMedia hot pink

#FD2BA9

  • FD = red 253 out of 255: almost full red.
  • 2B = green 43 out of 255: very little green.
  • A9 = blue 169 out of 255: a good amount of blue.

Lots of red + some blue + little green = hot pink.

A HEX color code is 3 pairs of characters for red, green and blue. Shown: #FD2BA9, the hot pink in the iMillerMedia brand.

How does a HEX code work?

Screens make colors by mixing red, green and blue light. A HEX code is just a short way to write how much of each to use. “HEX” is short for hexadecimal, a counting system that uses the numbers 0 to 9 and the letters A to F. Each pair of characters can go from 00 (none of that color) to FF (the most), which equals 0 to 255.

  • #000000 is black: no red, green or blue.
  • #FFFFFF is white: full red, green and blue.
  • #FF0000 is pure red.

With 256 levels for each of the 3 colors, HEX codes can describe more than 16.7 million colors. Capital and lowercase letters mean the same thing, so #FD2BA9 and #fd2ba9 are identical.

How do you find a HEX color code quickly?

The quickest way: a color picker browser extension

A shortcut I recommend is AutoColorPicker, a color picker extension for Chrome. Once it is added to your browser, you can hover over or click any color on any website and read its HEX and RGB codes in a second, then copy them straight into your design tool or website editor. Its website also offers phone apps and handy free-standing tools, like a color extractor for images, a palette generator and a color code converter.

Without an extension, in Chrome or Edge

Right-click the page and choose Inspect. In the Styles panel, click any small color square to open the color picker, then use the eyedropper to click any color on the page. The HEX code appears in the picker.

With a browser extension: Auto Color Picker

For the quickest way to grab colors while you browse, try Auto Color Picker, a color picker extension for Chrome. Once it is added to your browser, you can point at any pixel on any website and see its HEX and RGB values, then copy the code. It is one of the handiest tools for matching colors from a website you like, and Auto Color Picker also offers apps for Android and iPhone.

On a Mac

Open the built-in Digital Color Meter app (search for it with Spotlight) and hover over any color on your screen. In its View menu, you can choose to display values as hexadecimal.

On Windows

Install Microsoft’s free PowerToys and turn on Color Picker. Press Windows + Shift + C, click any color on your screen and copy its HEX code.

In design tools

Canva, Figma, Adobe Express and Photoshop all have an eyedropper or color picker that shows the HEX code of any color in your design or an uploaded image.

From a brand style guide

The most reliable source is your brand style guide, which should list the exact HEX code for every brand color. Learn more in What is a brand style guide?

Tips for using HEX colors on your website

  • Save your codes in 1 place, so every designer, tool and social post uses exactly the same colors.
  • Check contrast before you use a color for text. Some bright brand colors, like hot pink on white, don’t have enough contrast for small text. A darker shade can keep your look while staying readable. Learn more in How to make your website accessible.
  • Don’t trust your eyes alone. Colors can look different on different screens, so always copy the code rather than matching by sight.

Can you use a HEX code for printing?

Not directly. HEX describes colors made with light on screens. Printers mix inks, so print uses CMYK or Pantone colors instead, and some bright screen colors can’t be printed exactly. Learn how the 4 color systems fit together in How brands keep their colors consistent: Pantone vs HEX vs CMYK vs RGB.

How iMillerMedia helps

Every Brand Identity Build includes a brand style guide that lists your exact brand colors, so your brand looks the same everywhere. Need graphics in your brand colors? See Copy & Graphic Design.

Frequently Asked Questions About HEX Colors

What is a HEX color code?

A HEX color code is a # sign followed by 6 characters, like #FD2BA9, that tells screens exactly which color to show. The 3 pairs set the amounts of red, green and blue.

What is the fastest way to find a HEX code on a website?

A color picker browser extension, such as AutoColorPicker for Chrome, lets you read the HEX and RGB code of any color on any website in a second.

How do I find the HEX code of a color on a website?

In Chrome or Edge, right-click and choose Inspect, click a color square in the Styles panel and use the eyedropper to click any color on the page. The HEX code appears in the picker.

What is the easiest way to pick a color from any website?

A browser extension like Auto Color Picker for Chrome lets you point at any pixel on a website and see its HEX and RGB values, ready to copy.

How do I find a HEX code on a Mac?

Open the built-in Digital Color Meter app, hover over the color and set the View menu to display values as hexadecimal.

How do I find a HEX code on Windows?

Install Microsoft’s free PowerToys, turn on Color Picker, press Windows + Shift + C and click any color on your screen.

Is HEX the same as RGB?

They describe the same colors in different ways. HEX writes the red, green and blue values as 3 pairs of characters; RGB writes them as numbers from 0 to 255.

Can I use a HEX code for printing?

Not directly. HEX is for screens. Print uses CMYK or Pantone colors, so your brand style guide should list those too.

Ready to bring your brand to life?

Tell me about your business and what you need, from a full brand and website to one quick fix.

Request info Email ingrid@imillermedia.com