def get_color(p):
    _LUMA_LIMIT = 170
    color = 0
    luma = _LUMA_LIMIT
    while (luma >= _LUMA_LIMIT):
        color = random.randrange(0, 16777215, 15)
        luma = (((0.2126 * ((color >> 16) & 255)) + (0.7152 * ((color >> 8) & 255))) + (0.0722 * ((color >> 0) & 255)))
    return ('#' + ('%06x' % color))
def get_color(p):
    _LUMA_LIMIT = 170
    color = 0
    luma = _LUMA_LIMIT
    while (luma >= _LUMA_LIMIT):
        color = random.randrange(0, 16777215, 15)
        luma = (((0.2126 * ((color >> 16) & 255)) + (0.7152 * ((color >> 8) & 255))) + (0.0722 * ((color >> 0) & 255)))
    return ('#' + ('%06x' % color))