RGB color space comparison: CIELAB (perceptual distance) vs RGB Cube

Below is a side-by-side comparison of RGB color space shown as the typical RGB cube (right) and the same volume after being transformed into CIELAB. The volume is approximated by taking the convex hull of a discretized CIELAB space.

Source code and images are available at https://github.com/connorgr/colorspaces/

Color space illustrations

Above: additive vs. subtractive color.

Above: CIELCh color space

Above: opponent processing.

CIELAB (top) vs. RGB (bottom) interpolation