def get_hue_fg_colour(h, s, v):
    """Returns the best foreground colour for a given background colour (black or white.)"""
    if s > 0.6:
        if h > 20 and h <= 200:
            return "black"
    elif s <= 0.6:
        if v > 0.8:
            return "black"
    
    return "white"