Seaborn has an option to create nice color palettes. I wish to use these palettes to generate colors that work well together in a map where countries are shaded according to some property. The following code produces 8 shades of purple from light to dark. Note also the ability to specify the number of colors is required so I cannot just use a fixed palette of defined colors.
import seaborn as sns
num_shades = 8
color_list = sns.cubehelix_palette(num_shades)
[[0.9312692223325372, 0.8201921796082118, 0.7971480974663592], ...
The values you are getting are percentages of 255, the max RGB value. Just multiply each triplet of values by 255 (and round off, if you like) to get the RGB values.
for color in color_list: for value in color: value *= 255
Then store those in a new list to have your list of RGB values.