Return web-safe hex triplets.

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)