phenotypic.util.lab_to_srgb_hex#

phenotypic.util.lab_to_srgb_hex(lab: numpy.ndarray) str[source]#

Convert a single CIE L*a*b* (D65) color to an sRGB #RRGGBB string.

Returns "" if any coordinate is NaN (e.g. an empty object).

Parameters:

lab (numpy.ndarray)

Return type:

str