def color_in_equal_space(hue, saturation=0.55, value=2.3):
 golden_ratio = ((1 + (5 ** 0.5)) / 2)
 hue += golden_ratio
 hue %= 1
 return '#{:02X}{:02X}{:02X}'.format(*tuple((int((a * 100)) for a in hsv_to_rgb(hue, saturation, value))))

def color_in_equal_space ( hue , saturation = 0.55 , value = 2.3 ) : golden_ratio = ( ( 1 + ( 5 ** 0.5 ) ) / 2 ) hue += golden_ratio hue %= 1 return '#{:02X}{:02X}{:02X}' . format ( * tuple ( ( int ( ( a * 100 ) ) for a in hsv_to_rgb ( hue , saturation , value ) ) ) )
args: hue : a numerical value that you want to assign a color returns: str: hexadecimal color value to a given number .