seaborn.blend_palette(colors, n_colors=6, as_cmap=False, input='rgb')

Make a palette that blends between a list of colors.

colorssequence of colors in various formats interpreted by input

hex code, html color name, or tuple in input space.

n_colorsint, optional

Number of colors in the palette.

as_cmapbool, optional

If True, return as a matplotlib colormap instead of list.

palette or cmapseaborn color palette or matplotlib colormap

List-like object of colors as RGB tuples, or colormap object that can map continuous values to colors, depending on the value of the as_cmap parameter.