# Hex color

*noun*

say it: **“HEKS KUL-er”** **/hɛks ˈkʌlər/**

A color written as # (read "hash") and six digits or letters, two each for red, green and blue, such as #ff6347. Each pair runs from 00 (none) to ff (full).

## What is a **hex color**?

A **hex color** is written as `#` plus six hex digits: two each for red, green and blue.

```css
.logo { color: #ff6600; }   /* orange: lots of red, some green, no blue */
```

## In a sentence

- “The band's logo uses the **hex color** #1d3557, so I pasted that straight into the stylesheet.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/hex-color
