<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def Point2HexColor(a, lfrac, tfrac):
 """ Return web-safe hex triplets. """


    [H,S,V] = [math.floor(360 * a), lfrac, tfrac]

    RGB = hsvToRGB(H, S, V)

    H = [hex(int(math.floor(255 * x))) for x in RGB]

    HEX = [a[a.find('x') + 1:] for a in H]
    HEX = ['0' + h if len(h) == 1 else h for h in HEX]

    return '#' + ''.join(HEX)