def rgb2lab(rgb, illuminant='D65', observer='2'):
 return xyz2lab(rgb2xyz(rgb), illuminant, observer)

def rgb2lab ( rgb , illuminant = 'D65' , observer = '2' ) : return xyz2lab ( rgb2xyz ( rgb ) , illuminant , observer )
rgb to lab color space conversion .