import cupy import colorsys from matplotlib impl plot peak = [124.3,231.5, 64.4] h,s,v = colorsys.rgb_to_hsv(r=peak[0]/255,g=peak[1]/255,b=peak[2]/255) SATURATION_BOOST_FACTOR = 1.5 s = min(1,s*SATURATION_BOOST_FACTOR) print([h,s,v]) r,g,b = colorsys.hsv_to_rgb(h=h,s=s,v=v) print([r,g,b])