def hsv_to_htmlhexrgb(h, s, v):
    'Convert hsv colors to hex-encoded rgb colors usable by html.'
    import colorsys
    (hex_r, hex_g, hex_b) = (round((255 * x)) for x in colorsys.hsv_to_rgb(h, s, v))
    return '#{hex_r:0>2X}{hex_g:0>2X}{hex_b:0>2X}'.format(hex_r=hex_r, hex_g=hex_g, hex_b=hex_b)
Convert hsv colors to hex-encoded rgb colors usable by html.
def hsv_to_htmlhexrgb(h, s, v):
    
    import colorsys
    (hex_r, hex_g, hex_b) = (round((255 * x)) for x in colorsys.hsv_to_rgb(h, s, v))
    return '#{hex_r:0>2X}{hex_g:0>2X}{hex_b:0>2X}'.format(hex_r=hex_r, hex_g=hex_g, hex_b=hex_b)