It is my understanding that you have an uncertainty in using lab2rgb function to render some color blocks from CIELAB color space to RGB color space. By default lab2rgb converts the CIELAB color to sRGB color. sRGB and RGB have equal amount of colors but the range of sRGB is narrower.
lab2rgb with more than one name-value argument can be used to convert it into a specific color space. To convert CIELAB to RGB
lab2rgb(input,'ColorSpace','adobe-rgb-1998')
Refer to Adobe RGB in this link
rgb2lin function can also be used to convert to RGB. Refer the below link