PDF download Download Article
Check and identify color codes on your screen with apps or websites
PDF download 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 wikiHow 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 6:

Color Cop for Windows

PDF download Download Article
  1. 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 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. You'll find it in your Start menu.
    Advertisement
  3. You can identify any color on the screen, including those in other applications and on websites.
  4. The code will appear in the blank at the center of the application.
  5. This copies the hex code to your clipboard.
  6. You can use Ctrl+V to paste the hex code anywhere you wish, such as in your HTML or CSS code.
  7. Advertisement
Method 2
Method 2 of 6:

Digital Color Meter on a Mac

PDF download Download Article
  1. 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. 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 also use the tool to identify colors on the web. Just open Safari (or your preferred browser) and navigate to a website that contains the color you want to identify.
    • If Digital Color Meter is showing RGB colors instead of hex codes, go to View > Display Values > as Hexadecimal.
  3. This locks both the horizontal and vertical apertures, which means the color value will not change when you move the mouse.
  4. You can also copy the hex code by clicking the Color menu and selecting Copy Color as Text.
  5. You can paste it directly into your HTML code, a text file, or any other typing area.
  6. 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 3
Method 3 of 6:

Imagecolorpicker.com

PDF download Download Article
  1. Go to 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. 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 so you can select your desired color.
    • To get started, click Use your image in the lower-right part of the screen.
    • Choose how you want to use your image. You can pick Upload image, Color on your Screen, Website Url, Image Url, Paste clipboard, or Search.
      • Upload image will allow you to upload an image from your computer. Click Browse or drop image and choose the image you want to upload.
      • Color on your Screen will allow you to pick a color that's currently on your screen. Click Start to begin.
      • Website Url and Image Url allow you to paste a URL to a website or image you want to find a color from.
      • Paste clipboard allows you to paste an image from your clipboard into imagecolorpicker.com.
      • Search allows you to find an image on Pexels (a stock photo site).
  3. This displays the color hex code to the right of the image.
    • You can also see the RGB color under the hex code.
    • Click Show more to see shades, tints, and color combinations with the hex code you picked.
    • Look under your image to see a color palette of the main colors in the image.
  4. 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 6:

Firefox Eyedropper

PDF download Download Article
  1. 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).
    • You can download Firefox for free at mozilla.org/en-US/firefox.
    • Firefox will only tell you the value of a color on a website. You can't use it outside of the browser.
  2. Make sure the element you need the color for is in view.
  3. It's the three horizontal lines at the top-right corner of Firefox.
  4. Your mouse cursor will turn into a large circle.
  5. 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.
  6. 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.
  7. Advertisement
Method 5
Method 5 of 6:

ColorZilla Browser Extension

PDF download Download Article
  1. ColorZilla is a browser extension with several functions, one of which is an eyedropper tool to find the hex codes of colors in your browser.[2]
    • Get ColorZilla for Firefox and Chrome. The Chrome extension can also be added to other Chromium browsers, like Microsoft Edge and Opera.
  2. Click the extensions icon in your toolbar to view all extensions, then click the pin icon next to ColorZilla to pin it for easy access. The extensions icon will vary based on your browser; it might be a puzzle piece, a star, or a cube, but it's always to the right of your address bar.
  3. It looks like an icon of an eyedropper. You will immediately be able to pick out colors on your screen.
  4. The ColorZilla extension will remember the last color you picked and show it as a box over the eyedropper icon in your toolbar.
    • To cancel without picking a color, you can either click the X button in the ColorZilla bar at the top of your screen, or you can right-click on the page.
  5. 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.
  6. Advertisement
Method 6
Method 6 of 6:

Use a Hex Code Color Chart

PDF download Download Article
  1. 1
    If you can't find the color you're looking for, you can copy and paste the code from this extensive list of colors:
    HTML Color Chart
    Color Color Name HTML Hex Code
    maroon #800000
    dark red #8B0000
    brown #A52A2A
    firebrick #B22222
    crimson #DC143C
    red #FF0000
    tomato #FF6347
    coral #FF7F50
    indian red #CD5C5C
    light coral #F08080
    dark salmon #E9967A
    salmon #FA8072
    light salmon #FFA07A
    orange red #FF4500
    dark orange #FF8C00
    orange #FFA500
    gold #FFD700
    dark golden rod #B8860B
    golden rod #DAA520
    pale golden rod #EEE8AA
    dark khaki #BDB76B
    khaki #F0E68C
    olive #808000
    yellow #FFFF00
    yellow green #9ACD32
    dark olive green #556B2F
    olive drab #6B8E23
    lawn green #7CFC00
    chartreuse #7FFF00
    green yellow #ADFF2F
    dark green #006400
    green #008000
    forest green #228B22
    lime #00FF00
    lime green #32CD32
    light green #90EE90
    pale green #98FB98
    dark sea green #8FBC8F
    medium spring green #00FA9A
    spring green #00FF7F
    sea green #2E8B57
    medium aqua marine #66CDAA
    medium sea green #3CB371
    light sea green #20B2AA
    dark slate gray #2F4F4F
    teal #008080
    dark cyan #008B8B
    aqua #00FFFF
    cyan #00FFFF
    light cyan #E0FFFF
    dark turquoise #00CED1
    turquoise #40E0D0
    medium turquoise #48D1CC
    pale turquoise #AFEEEE
    aqua marine #7FFFD4
    powder blue #B0E0E6
    cadet blue #5F9EA0
    steel blue #4682B4
    corn flower blue #6495ED
    deep sky blue #00BFFF
    dodger blue #1E90FF
    light blue #ADD8E6
    sky blue #87CEEB
    light sky blue #87CEFA
    midnight blue #191970
    navy #000080
    dark blue #00008B
    medium blue #0000CD
    blue #0000FF
    royal blue #4169E1
    blue violet #8A2BE2
    indigo #4B0082
    dark slate blue #483D8B
    slate blue #6A5ACD
    medium slate blue #7B68EE
    medium purple #9370DB
    dark magenta #8B008B
    dark violet #9400D3
    dark orchid #9932CC
    medium orchid #BA55D3
    purple #800080
    thistle #D8BFD8
    plum #DDA0DD
    violet #EE82EE
    magenta / fuchsia #FF00FF
    orchid #DA70D6
    medium violet red #C71585
    pale violet red #DB7093
    deep pink #FF1493
    hot pink #FF69B4
    light pink #FFB6C1
    pink #FFC0CB
    antique white #FAEBD7
    beige #F5F5DC
    bisque #FFE4C4
    blanched almond #FFEBCD
    wheat #F5DEB3
    corn silk #FFF8DC
    lemon chiffon #FFFACD
    light golden rod yellow #FAFAD2
    light yellow #FFFFE0
    saddle brown #8B4513
    sienna #A0522D
    chocolate #D2691E
    peru #CD853F
    sandy brown #F4A460
    burly wood #DEB887
    tan #D2B48C
    rosy brown #BC8F8F
    moccasin #FFE4B5
    navajo white #FFDEAD
    peach puff #FFDAB9
    misty rose #FFE4E1
    lavender blush #FFF0F5
    linen #FAF0E6
    old lace #FDF5E6
    papaya whip #FFEFD5
    sea shell #FFF5EE
    mint cream #F5FFFA
    slate gray #708090
    light slate gray #778899
    light steel blue #B0C4DE
    lavender #E6E6FA
    floral white #FFFAF0
    alice blue #F0F8FF
    ghost white #F8F8FF
    honeydew #F0FFF0
    ivory #FFFFF0
    azure #F0FFFF
    snow #FFFAFA
    black #000000
    dim gray / dim grey #696969
    gray / grey #808080
    dark gray / dark grey #A9A9A9
    silver #C0C0C0
    light gray / light grey #D3D3D3
    gainsboro #DCDCDC
    white smoke #F5F5F5
    white #FFFFFF

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 into the website's source code to find the hex code.
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

About This Article

Hannah Dillon
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Hannah Dillon. Hannah Dillon is a Technology Writer and Editor at wikiHow. She graduated with a B.A. in Journalism from North Dakota State University in 2013 and has since worked in the video game industry as well as a few newspapers. From a young age Hannah has cultivated a love for writing and technology, and hopes to use these passions in tandem to help others in the articles she writes for wikiHow. This article has been viewed 421,012 times.
How helpful is this?
Co-authors: 23
Updated: July 9, 2025
Views: 421,012
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 421,012 times.

Is this article up to date?

Advertisement