RGB
A way of describing a colour by how much red, green and blue light to mix, each usually from 0 to 255.
In more detail
RGB matches how screens make colour, which is why hex colours are RGB values in base 16. It is a poor fit for design because the numbers do not tell you how light a colour will look.
Related terms
- sRGB — The standard RGB colour space that most screens, images and older CSS colours use.
- hex color — A colour written as # followed by hexadecimal digits for its red, green and blue amounts, such as #2563eb.
- HSL — A way of describing an sRGB colour by hue, saturation and lightness, which is easier to adjust by hand than raw RGB numbers.
- tuple — An ordered, fixed-length group of values in which each position can have its own meaning and type.
Taught in
- Modern Color Spaces: OKLCH, Gamut Mapping & APCA Contrast — Design Systems & Component Engineering
- Visual Contrast Auditing: Color Blindness & Reduced Motion — Design Systems & Component Engineering
- The satisfies Operator: Safe Validation Without Widening — Production TypeScript