how to get the hexadecimal code from a color

The Ultimate Guide to Finding Hexadecimal Color Codes Quickly

By Brian Brown
AD

Identifying the hexadecimal code of a specific color is a fundamental skill for anyone working in design, development, or digital art. This six-digit alphanumeric string, often preceded by a hash symbol, serves as a precise digital fingerprint for a color, allowing for consistent reproduction across different software and devices. Whether you are tweaking a website's branding or matching a client's exact vision, understanding how to extract this code is essential.

The hexadecimal system, often shortened to "hex," is a base-16 number system used in computing to represent colors. Instead of using the ten digits of the decimal system (0-9), hexadecimal uses sixteen symbols: 0-9 and the letters A-F. This system compactly defines the intensity of the red, green, and blue (RGB) components of a color, making it a universal standard for web design and digital graphics.

Using Digital Design Software

For professionals working in industry-standard creative applications, the color information is readily available within the interface. Modern design tools provide multiple panels and inspectors that display the exact numerical values of the selected color.

AD
Random Hex Color Code Generator
Random Hex Color Code Generator
All the Hex Codes for Colors You Need to Succeed Online | LouiseM
All the Hex Codes for Colors You Need to Succeed Online | LouiseM
the color chart for different colors
the color chart for different colors

Adobe Creative Suite

In Adobe applications like Photoshop, Illustrator, and InDesign, the color picker and properties panels are the primary sources for hex codes. When you select the foreground or background color, the dialog box typically displays the hex value prominently. Additionally, the Info panel provides real-time readouts of color values as you move your cursor over the canvas.

Figma and Web-Based Tools

Cloud-based design platforms like Figma have made color extraction incredibly straightforward. Designers can simply click on any element on the canvas, and the right-hand properties panel will instantly display the hex code. Many of these modern interfaces also include a visual color slider that allows for fine-tuning while displaying the corresponding code immediately.

DTI hex codes
DTI hex codes
Finding Hexadecimal Color Codes and Palettes
Finding Hexadecimal Color Codes and Palettes
Pick Colors from Any Image – Free HEX, RGB & Color Codes
Pick Colors from Any Image – Free HEX, RGB & Color Codes

Leveraging Operating System Tools

You do not need professional software to find a hex code. Both Windows and macOS include built-in utilities that can sample color information from anywhere on your screen.

Windows Color Picker

Windows 10 and 11 include a powerful color picker tool that is often overlooked. By pressing the Windows key + . (period) or Windows key + ; (semicolon), you can activate a color picker that magnifies your cursor. You can then select any pixel on your screen, and the system will provide the hex, RGB, and HSL values, which you can copy directly into your project.

AD

macOS Digital Color Meter

Mac users can access the Digital Color Meter application, usually located in the Utilities folder. This tool provides a live preview of the color under your cursor and displays RGB values by default. Crucially, you can change the display mode in the menu bar to show the color's hexadecimal code, which updates in real-time as you move the cursor.

101 basic colors
101 basic colors
Organized & Aesthetic: Color Codes for Google Sheets in Every Shade🌟
Organized & Aesthetic: Color Codes for Google Sheets in Every Shade🌟
Tips for a better understanding of color codes 🧪
Tips for a better understanding of color codes 🧪
Hex Colors for Customizing Notion Forms
Hex Colors for Customizing Notion Forms
Hexadecimal Coding Values
Hexadecimal Coding Values
Easy Easy Way To Find Your Color Code Values
Easy Easy Way To Find Your Color Code Values

Browser Developer Tools

For web developers, the browser itself is one of the most efficient laboratories for color extraction. Inspecting an element on a webpage reveals the exact color codes used by the site's CSS.

By right-clicking on any colored element and selecting "Inspect," you open the developer tools. The computed styles section will highlight the CSS properties, including the color value. Hex codes are displayed prominently, and many browsers allow you to click on the color swatch to cycle through different formats, such as RGB or HSL, without losing the original hex reference.

AD
color palettes with hex codes
color palettes with hex codes
How to get the HTML color codes in Google Sheets - Plus every color in the color picker!
How to get the HTML color codes in Google Sheets - Plus every color in the color picker!
Color Your Design Space Image tutorial
Color Your Design Space Image tutorial
Hexadecimal Colors Explained | RGB vs Hex Codes
Hexadecimal Colors Explained | RGB vs Hex Codes
HTML Color Codes and Names
HTML Color Codes and Names
the color picker screen is open and ready to be used
the color picker screen is open and ready to be used
HTML Color Codes - What's your color
HTML Color Codes - What's your color
the color chart for different colors and numbers
the color chart for different colors and numbers
HEX CODE for Dummies (The Non-Technical Guide) (Base-16)
HEX CODE for Dummies (The Non-Technical Guide) (Base-16)
Hex codes / color codes for dti!!!
Hex codes / color codes for dti!!!
Interactive HTML Color Picker & HEX Code (Free Tool)
Interactive HTML Color Picker & HEX Code (Free Tool)
the color chart for different shades of brown and pink
the color chart for different shades of brown and pink
the color chart for good notes hex codes, with different colors and sizes
the color chart for good notes hex codes, with different colors and sizes
RGB to Hexadecimal Codes
RGB to Hexadecimal Codes
AD