I think, in L*a*b color space, L is between [0,100]. So the line below should divide by 100 rather than 255. https://github.com/abhishekvahadane/CodeRelease_ColorNormalization/blob/fc05020830eff1d4d3babfd654518618294334e8/SNMF%20stain%20separation%20and%20color%20normalization/BLtrans.m#L12