def get_color_from_color_code(color_code):
    """Converts a color code to a color name.

    Args:
        color_code (list): color code

    Returns:
        str: color name
    """
    if color_code[0]:
        return 'red'
    elif color_code[1]:
        return 'green'
    elif color_code[2]:
        return 'blue'
    elif not all(color_code):
        return 'black'
    else:
        return 'unknown'