RGB2Lab

Converts an image from the RGB color space to the CIELAB color space.
16.5K Downloads
Updated 6 May 2009

View License

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 .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0