Simple Ways to Find the Hex Code of Any Color on Your Computer

Download Article
Check and identify color codes on your screen with apps or websites
Download Article

Colors are identified in HTML and CSS by their hexadecimal codes. If you're creating a webpage or other HTML project and want to include an element that matches a specific color in an image, website, or window on your computer screen, you'll need to find the color's hex code. This How.com.vn teaches you how to use a variety of free tools to quickly identify the hex code of any color.

How to Find a Hex Color Code

Upload the picture to an online color chooser, like Image Color Picker, and tap the color on the screen you want to identify. Then, tap the Copy icon next to the 6-digit hex code to copy it. Alternatively, use programs like Digital Color Meter or Color Cop.

Method 1
Method 1 of 4:

Using Digital Color Meter on a Mac

Download Article
  1. How.com.vn English: Step 1 Open Digital Color Meter on your Mac.
    This tool, which comes with macOS, can identify the color value of any color on the screen.[1] Open Finder, double-click the Applications folder, double-click the Utilities folder, and then double-click Digital Color Meter to open it.
  2. How.com.vn English: Step 2 Move the mouse cursor to color you want to identify.
    As you move the mouse, the values in the tool will update in real-time. Don't move your mouse from this location until you lock both the horizontal and vertical apertures.
    • You can use the tool to identify colors on the web, too. Just open Safari (or your preferred browser) and navigate to a website that contains the color you want to identify.
    Advertisement
  3. How.com.vn English: Step 3 Press ⌘ Command+L.
    This locks both the horizontal and vertical apertures, which means the color value will not change when you move the mouse.
  4. How.com.vn English: Step 4 Press ⇧ Shift+⌘ Command+C to copy the hex code to the clipboard.
    You can also copy the hex code by clicking the Color menu and selecting Copy Color as Text.
  5. How.com.vn English: Step 5 Press ⌘ Command+V to paste the copied code.
    You can paste it directly into your HTML code, a text file, or any other typing area.
  6. How.com.vn English: Step 6 Press ⌘ Command+L to unlock the apertures.
    If you want to identify another color, this releases the lock so the cursor once again acts as a color value identifier.
  7. Advertisement
Method 2
Method 2 of 4:

Using Color Cop for Windows

Download Article
  1. How.com.vn English: Step 1 Install Color Cop.
    Color Cop is a small, free utility you can use to quickly identify the hex code of any color on the screen. Here's how to get the app:
    • Go to http://colorcop.net/download in a web browser.
    • Click colorcop-setup.exe under "self-installing." If the file doesn't download automatically, click Save or OK to start the download.
    • Double-click the downloaded file (it's in the Downloads folder, and usually at the bottom-left corner of the browser tab).
    • Follow the on-screen instructions to install the application.
  2. How.com.vn English: Step 2 Open Color Cop.
    You'll find it in your Start menu.
  3. How.com.vn English: Step 3 Drag the eyedropper icon to the color you want to identify.
    You can identify any color on the screen, including those in other applications and on websites.
  4. How.com.vn English: Step 4 Let go of the mouse button to reveal the hex code.
    The code will appear in the blank at the center of the application.
  5. How.com.vn English: Step 5 Double-click the hex code and press Ctrl+C.
    This copies the hex code to your clipboard.
  6. How.com.vn English: Step 6 Paste the code where you need it.
    You can use Ctrl + V to paste the hex code anywhere you wish, such as in your HTML or CSS code.
  7. Advertisement
Method 3
Method 3 of 4:

Using Imagecolorpicker.com

Download Article
  1. How.com.vn English: Step 1 Go to https://imagecolorpicker.com...
    Go to https://imagecolorpicker.com on your computer, phone, or tablet. You can use this free tool to identify the hex code of any color in an uploaded image. This method will work in any web browser, including those on your Android, iPhone, or iPad.
  2. How.com.vn English: Step 2 Upload an image or enter a URL.
    You'll need to decide whether you want to upload your own image or use an image or website already online. Either method can be used to display a picture or webpage for you to select your desired color.
    • To upload an image, scroll down and select Upload your image, navigate to the image on your computer, phone, or tablet, and select the option to upload it.
    • To use a website, scroll down to the "Use this box to get the HTML color code from a website" option, enter the URL, and then click or tap Take website.
    • To select a direct image on the web instead of a whole website, enter the URL to the image into the "Use this box to get the HTML color code from a picture via this URL" box, then click or tap Take image.
  3. How.com.vn English: Step 3 Click or tap the color you want within the image/site preview.
    This displays the color hex code at the bottom-left corner of the screen.
  4. How.com.vn English: Step 4 Click or tap the copy icon to copy the hex code to your clipboard.
    It's the two overlapping squares to the right of the hex code. You can then paste it into any text file or typing area.
  5. Advertisement
Method 4
Method 4 of 4:

Using Firefox (for Colors on the Web)

Download Article
  1. How.com.vn English: Step 1 Open Firefox on your PC or Mac.
    The Firefox web browser comes with a free Eyedropper tool you can use to identify the hex code of any color on the web. If you have Firefox, you'll find it in the Start menu (Windows) or in the Applications folder (macOS).
  2. How.com.vn English: Step 2 Go to a website that contains the color you want to identify.
    Make sure the element you need the color for is in view.
  3. How.com.vn English: Step 3 Click the menu ☰.
    It's the three horizontal lines at the top-right corner of Firefox.
  4. How.com.vn English: Step 4 Click the Web Developer menu.
    Another menu will expand.
  5. How.com.vn English: Step 5 Click Eyedropper.
    Your mouse cursor will turn into a large circle.
  6. How.com.vn English: Step 6 Click the color you want to identify.
    You'll notice the hex value of the colors update live as you move the mouse to the location. Once you click the mouse, Firefox will save the hex code to your clipboard.
  7. How.com.vn English: Step 7 Paste the code where you need it.
    You can use Control + V (PC) or Command + V (Mac) to paste the hex code into your HTML, CSS, or any other type of text file.
  8. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      • There are other websites, browser extensions, and image editing programs that will also allow you to use a color picker to reveal the hue's hex code, too.
      • If you know who created the webpage with the color you're trying to match, you can always ask them what hex code they used. Alternatively, you can dig in the website's source code to find the hex code listed there.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Nicole Levine, MFA
      Written by:
      How.com.vn Technology Writer
      This article was co-authored by How.com.vn staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for How.com.vn. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 382,078 times.
      How helpful is this?
      Co-authors: 20
      Updated: April 12, 2024
      Views: 382,078
      Categories: HTML | Graphics
      Article SummaryX

      1.Open Digital Color Meter on your Mac.
      2.Move the mouse cursor to the color.
      3.Press Command + L to lock the cursor.
      4.Press Shift + Command + C to copy the hex code.
      5.Paste the hex code into a file.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 382,078 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement