def gen_color_names(colors):
    """
    Convert RGB values into a hexadecimal color string.
    """
    color_names = []
    for color in colors:
        name = "{:02x}{:02x}{:02x}".format(*color)
        color_names.append(name)
    return color_names