Why JPEG Compresses Luminance More Than Chrominance

JPEG compression prioritizes the luminance (brightness) channel over chrominance (color) channels primarily because of the biology of human visual perception. By converting standard RGB image data into the YCbCr color space, the JPEG algorithm separates brightness from color information. It then aggressively discards fine color detail through chroma subsampling and coarse quantization while preserving brightness data. This targeted approach significantly reduces file sizes without introducing obvious visual degradation to the human eye.

The Biology of Human Vision

The human eye relies on two main types of photoreceptor cells located on the retina: rods and cones. Rods are extremely sensitive to light intensity and brightness variations, providing high spatial acuity for luminance. Cones, while responsible for perceiving color, are far less numerous and provide lower spatial resolution for chromatic differences.

Because of this anatomical imbalance, humans are quick to notice blurriness, edge distortion, or loss of detail in light-and-dark contrasts. Conversely, the human visual system struggles to detect fine spatial shifts or blurring in pure color information if the underlying brightness boundaries remain sharp. JPEG leverages this perceptual quirk to achieve higher compression ratios.

Color Space Transformation: RGB to YCbCr

Digital sensors and displays typically operate using the RGB (Red, Green, Blue) color model, where luminance and color data are blended across all three channels. In an RGB image, compressing any single channel degrades both brightness and color simultaneously.

To isolate brightness, JPEG converts RGB data into the YCbCr color space:

Once separated, the compression algorithm can apply distinct compression rules to each component independently.

Chroma Subsampling

The first major fidelity reduction applied to chrominance is chroma subsampling. Because the eye cannot resolve fine color detail, JPEG reduces the resolution of the Cb and Cr channels while maintaining the Y channel at full resolution.

In common implementations such as 4:2:0 subsampling, chrominance data is sampled at half the resolution both horizontally and vertically. This means a 2x2 grid of pixels shares a single chrominance sample while maintaining four distinct luminance values. This step alone reduces the total uncompressed raw data by 50% before any mathematical compression algorithms take place, with virtually no perceptible loss in quality under standard viewing conditions.

Quantization and Frequency Discarding

After subsampling, the image is divided into 8x8 pixel blocks and processed using the Discrete Cosine Transform (DCT). The DCT translates spatial pixel data into frequency components, separating low-frequency broad features from high-frequency fine details.

JPEG then applies quantization, which divides the frequency coefficients by values defined in a quantization table and rounds the results to the nearest integer. JPEG uses separate quantization tables for luminance and chrominance:

During entropy coding (the final step of JPEG compression), sequences of zeros are stored extremely efficiently using run-length encoding. By aggressively zeroing out the chrominance coefficients, JPEG achieves substantial data reduction where the eye is least likely to notice it, keeping the high-fidelity luminance channel intact to define the image's perceived sharpness.