Extract RGB or 6 digit code from Seaborn palette August 5, 2023 by Tarik If by “6 digit code” you mean a hex code, you can also do: pal = sns.color_palette(...) pal.as_hex()