3.2 Color Spaces
Color Spaces Overview
1. RGB Color Space
Definition
RGB stands for Red–Green–Blue, an additive color model used in displays, cameras, and digital imaging. Each pixel’s color is expressed as a combination of the three primary light intensities:
Key Concepts
-
Based on additive color mixing — combining red, green, and blue light yields all visible colors.
-
Examples:
-
→ Red
-
→ Green
-
→ Blue
-
→ White
-
→ Black
Characteristics
- Device-dependent: same RGB values can appear different across devices.
- Not perceptually uniform: brightness and color hue are mixed in the same space.
Applications
- Image display, digital photography, computer graphics, rendering pipelines.
2. HSV Color Space
Definition
HSV (Hue–Saturation–Value) reformulates RGB into a model that aligns more closely with human perception.
Components
-
H (Hue): type of color, represented as an angle on a color wheel
-
0° = Red, 120° = Green, 240° = Blue
-
S (Saturation): color intensity or purity
-
V (Value or Brightness): lightness level
Conversion (conceptual)
Characteristics
- Separates chromatic content (H, S) from brightness (V).
- More intuitive for selecting and adjusting colors.
- Not perceptually uniform — equal distances do not equal equal visual differences.
Applications
- Color selection tools (e.g., Photoshop, color pickers)
- Image segmentation and object tracking (using hue thresholding)
3. YCbCr Color Space
Definition
YCbCr is a luminance–chrominance color model used primarily in digital video, compression, and broadcasting. It separates brightness information from color information.
Components
- Y: Luma (brightness)
- Cb: Blue-difference chroma component
- Cr: Red-difference chroma component
Transformation (BT.601 standard)
Key Concepts
- carries the luminance — most important to human vision.
- carry chroma — can be stored at lower resolution (chroma subsampling).
- Exploits the fact that human eyes are more sensitive to brightness than color detail.
Applications
- JPEG and MPEG compression
- Broadcast television formats (e.g., YUV)
- Digital cameras and video codecs
4. CIELAB (Lab) Color Space
Definition
CIELAB (often just Lab) is a perceptually uniform color space defined by the CIE (International Commission on Illumination). Equal distances in Lab roughly correspond to equal perceived color differences.
Components
- : Lightness (0 = black, 100 = white)
- : Green–Red axis (negative = green, positive = red)
- : Blue–Yellow axis (negative = blue, positive = yellow)
Transformation from CIEXYZ
Given and reference white :
where
Key Characteristics
- Perceptually uniform: ΔE distances approximate perceived color differences.
- Device-independent: based on human color vision, not display technology.
Applications
- Color correction and matching across devices
- Measuring color differences (ΔE)
- Printing, paint matching, and machine vision
Comparison Summary
| Property | RGB | HSV | YCbCr | CIELAB (Lab) |
|---|---|---|---|---|
| Model Type | Additive light model | Perceptual cylindrical | Luminance–chrominance | Perceptually uniform |
| Components | R, G, B | H, S, V | Y, Cb, Cr | L*, a*, b* |
| Separates brightness? | ❌ No | ✅ Partially (V) | ✅ Yes (Y) | ✅ Yes (L*) |
| Perceptual uniformity | ❌ | ❌ | ❌ | ✅ |
| Device independence | ❌ | ❌ | ❌ | ✅ |
| Common uses | Displays, graphics | Color editing, segmentation | Compression, video | Color measurement, correction |
| Human interpretation | Low | High | Low | Very high |
Conceptual Summary
- RGB → How screens create color (device-based, additive).
- HSV → How humans perceive and describe color intuitively.
- YCbCr → How images store color efficiently for compression.
- Lab → How humans compare and measure color perceptually.