def match_colour(ccolor): # converting hex to rgb requested_color = colors.hex2color(ccolor.upper()) lab = rgbtolab(requested_color) return lab