English中文日本語한국어EspañolFrançaisDeutschPortuguêsРусский

Hex Color Codes

Hex color codes are one of the most widely used web color formats because they are short, precise, and easy to copy.

How Hex color codes work

A six-digit Hex value uses two characters for red, two for green, and two for blue. Each channel ranges from 00 to FF, giving the same color range as RGB values from 0 to 255.

Three-digit Hex colors

Some colors can be written in shorthand. For example, #fff expands to #ffffff and #09c expands to #0099cc. Shorthand is compact, but six-digit Hex values are clearer for design systems.

Converting Hex colors

Hex and RGB describe the same screen channels. Converting between them does not change the color; it only changes how the value is written.

Related color tools

Use these tools to pick, convert, test, and export the color values described in this guide.

More color guides