RGB2Lab

Converts an image from the RGB color space to the CIELAB color space.

You are now following this Submission

CIELAB is a nonlinear transformation of RGB where the Euclidean distance between two colors is equal to their perceptual distances (for distances less than ~10 units). Algorithms that process color images often produce better results in CIELAB.

The equations implemented here come from Charles Poynton's Colour FAQ.

Cite As

Mark Ruzon (2026). RGB2Lab (https://www.mathworks.com/matlabcentral/fileexchange/24009-rgb2lab), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0