# Hex Color Code

> A # and six signs that name one exact screen color. #FF0000 is red.

**Field:** Design  
**Category:** Visual Communication  
**Also known as:** Hex Code, Hex Color, Hexadecimal Color

## Think of it like

It is like a short secret code for a paint color. Six signs name it exactly.

## Definition

A hex color code writes an RGB color as a # and six characters. The pairs stand for red, green and blue, each from 00 to FF. FF is the most of that color, and 00 is none. So #FF0000 is pure red and #FFFFFF is white. It is the most common way to share a color on the web.

## Example

Emma's brand guide lists the blue as #1E66F5. Every developer pastes that code and gets the same blue.

## Example code

```css
color: #FF0000; /* red */
color: #1E66F5; /* a brand blue */
color: #FFF;    /* short for #FFFFFF, white */
```

Three pairs: red, green and blue, each from 00 to FF.

## Why it matters

A hex code is exact. So a color stays the same from the design file to the live site.

## Common mistake

Describing a color as light blue. Share the hex code so nobody has to guess.

## Three principles

- **Six characters.** Pairs for red, green and blue.
- **00 to FF.** None to full of each light.
- **Exact and shareable.** Copy it, get the same color.

## Related terms

- [RGB Color Model](https://learn.benibix.com/term/design/rgb-color-model)
- [HSL Color Model](https://learn.benibix.com/term/design/hsl-color-model)
- [Hexadecimal](https://learn.benibix.com/term/general/hexadecimal)
- [Eyedropper Tool](https://learn.benibix.com/term/design/eyedropper-tool)

## Taught in

- [RGB vs CMYK Color](https://learn.benibix.com/learn/design-visual-communication/rgb-vs-cmyk-color): Color and Images, 5/13

---

Source: https://learn.benibix.com/term/design/hex-color-code
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
