def adjust(cols, light):
    """Create palette."""
    cols.sort(key=util.rgb_to_yiq)
    raw_colors = [*cols, *cols]
    raw_colors[0] = util.lighten_color(cols[0], 0.40)

    return colors.generic_adjust(raw_colors, light)