def byte_hls_to_rgb(hls): rgb = colorsys.hls_to_rgb(*tuple(c / 255.0 for c in hls)) return tuple(int(round(c * 255)) for c in rgb)