hex color

A colour written as # followed by hexadecimal digits for its red, green and blue amounts, such as #2563eb.

In more detail

Each pair of digits runs from 00 (none) to ff (full) for red, green and blue in the sRGB colour space. An optional fourth pair sets transparency. Hex colours are compact but say nothing about how light a colour looks.

Examples

This course prefers OKLCH for building palettes and uses hex for literal brand values such as #2563eb.
In the browser: Each pair of digits runs from 00 to ff. Design tokens hide raw hex codes behind meaningful names.

Related terms

Taught in

References