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
- RGB — A way of describing a colour by how much red, green and blue light to mix, each usually from 0 to 255.
- sRGB — The standard RGB colour space that most screens, images and older CSS colours use.
- OKLCH — A colour space, used in CSS as oklch(), that describes colours by perceived lightness, chroma (colourfulness) and hue angle.
- design token — A named design decision, such as a colour, font size or spacing value, stored as data so every platform can use the same value.
Taught in
- Design Tokens: W3C Specs, Global, Semantic & Component Tokens — Design Systems & Component Engineering
- CSS Custom Properties & Dynamic Theming Architecture — Design Systems & Component Engineering
- Tailwind CSS v4 Engine: CSS Variables & Theme Extensions — Design Systems & Component Engineering
- CSS Custom Properties: Scoping, Fallbacks And Theming — Frontend Architecture & Web Platform
- never: The Bottom Type And Exhaustive Switch Checking — Production TypeScript
- The satisfies Operator: Safe Validation Without Widening — Production TypeScript