Color HEX

Understanding hexadecimal color codes and notation

What Is Hexadecimal Color?

A HEX color code is a way of expressing a color using hexadecimal (base-16) notation. It uses the digits 0–9 and letters A–F to represent values from 0 to 255. Each color is written as a # followed by six hex digits: two for red, two for green, and two for blue.

How Hex Digits Map to 0–255

Each pair of hex digits represents a number from 00 (0 in decimal) to FF (255 in decimal). The formula is: first_digit × 16 + second_digit. For example, 6C = 6×16 + 12 = 108.

HexDecimalHexDecimal
00080128
1A2699153
3351B3179
4D77CC204
66102E6230
7F127FF255

Interactive HEX Breakdown

#6C63FF
Red
6C
= 108 / 255
Green
63
= 99 / 255
Blue
FF
= 255 / 255
RGB108, 99, 255
HSL243°, 100%, 69%

Shorthand Notation: #RGB vs #RRGGBB

When each pair of hex digits has identical characters (like FF, 00, or AA), you can use shorthand — just three digits. The browser doubles each digit automatically.

ShorthandFull FormSwatch
#F00#FF0000
#0F0#00FF00
#00F#0000FF
#FFF#FFFFFF
#000#000000
#F80#FF8800
#ABC#AABBCC
#369#336699

Common HEX Colors

Red#FF0000
Green#008000
Blue#0000FF
Yellow#FFFF00
Cyan#00FFFF
Magenta#FF00FF
Orange#FFA500
Purple#800080
Navy#000080
Teal#008080
Coral#FF7F50
Tomato#FF6347
Gold#FFD700
Indigo#4B0082
Lime#00FF00
Silver#C0C0C0

Try It — CSS HEX Syntax

Live Editor
.element { background-color: #4285F4; color: #ffffff; padding: 24px; }
#4285F4
ℹ️
Fun fact: HEX colors also support an optional 8th digit for alpha transparency. For example, #FF000080 is a 50% transparent red. The alpha value 80 hex = 128 decimal ≈ 50%.

How to Use Color HEX?

  1. 1Choose a base color using the interactive picker or enter HEX, RGB, HSL values.
  2. 2Generate matching color palettes, schemes, or color space transformations instantly.
  3. 3Click on any color code block in the results to copy it instantly to your clipboard.

Designer Friendly

Easily match colors, check contrast ratios, and generate custom palettes for your designs.

Multi-Format Support

Supports copy-paste in HEX, RGB, RGBA, HSL, HSLA, and CSS variables formats.

Runs Locally

No internet connection required. Our color engines run instantly and cleanly inside your web browser.

Frequently Asked Questions

Is Color HEX free to use?
Yes, Color HEX is 100% free with no hidden charges, premium subscriptions, or limits. You can use it as much as you need.
How does the Color HEX tool work?
Understanding hexadecimal color codes and notation All operations are processed entirely inside your web browser using HTML5 features. Your files or input data are never uploaded to any server.
Is my data secure with Color HEX?
Absolutely. Since the processing runs client-side in your own browser, your data never leaves your device. This makes it completely secure and private.