If by "6 digit code" you mean a hex code, you can also do:

pal = sns.color_palette(...)
pal.as_hex()
Answer from mwaskom on Stack Overflow
🌐
Seaborn
seaborn.pydata.org › generated › seaborn.color_palette.html
seaborn.color_palette — seaborn 0.13.2 documentation
Reassign color codes like "b", "g", etc. to colors from one of the seaborn palettes. Examples · Calling with no arguments returns all colors from the current default color cycle: sns.color_palette() Other variants on the seaborn categorical color palette can be referenced by name: sns.color_palette("pastel") Return a specified number of evenly spaced hues in the “HUSL” system: sns.color_palette("husl", 9) Return all unique colors in a categorical Color Brewer palette: sns.color_palette("Set2") Return a diverging Color Brewer palette as a continuous colormap: sns.color_palette("Spectral",
🌐
Seaborn
seaborn.pydata.org › tutorial › color_palettes.html
Choosing color palettes — seaborn 0.13.2 documentation
The return value is an object that wraps a list of RGB tuples with a few useful methods, such as conversion to hex codes and a rich HTML representation. Calling color_palette() with no arguments will return the current default color palette that matplotlib (and most seaborn functions) will use if colors are not otherwise specified.
🌐
Codecademy
codecademy.com › article › seaborn-design-ii
Seaborn Color Palettes: Complete Guide to Data Visualization Colors | Codecademy
A Seaborn color palette defines the colors used in your plots and can be created using the sns.color_palette() function. This function accepts any of the built-in Seaborn palettes, such as "deep", "muted", or "bright". These seaborn color palettes provide consistent styling across your Python data visualizations. You can also customize your palette by passing a list of colors in any valid Matplotlib format. This includes RGB tuples, hex color codes, or HTML color names, giving you full control over the visual style of your plots.
🌐
Color Hex
color-hex.com › color-palette › 21830
SNS Color Palette
SNS color palette created by wings that consists #f0e594,#57b884,#ffab8d,#f2cbac,#ff6a9e colors.
🌐
GeeksforGeeks
geeksforgeeks.org › seaborn-color-palette
Seaborn - Color Palette - GeeksforGeeks
Using the palette we can generate the point with different colors. ... import seaborn as sns import matplotlib.pyplot as plt # Set a Seaborn color palette sns.set_palette("Set2") # Create some example data data = [3, 5, 7, 9, 2, 4, 6, 8] # Create a simple bar plot using the set color palette sns.barplot(x=range(len(data)), y=data) plt.show()
Published: April 8, 2025
🌐
Practicalpythonfordatascience
practicalpythonfordatascience.com › ap_seaborn_palette
Seaborn Color Palettes — Practical Python for Data Science
sns.color_palette(palette='Accent') sns.color_palette(palette='Blues') sns.color_palette(palette='Blues_d') sns.color_palette(palette='BrBG') sns.color_palette(palette='BuGn') sns.color_palette(palette='BuPu') sns.color_palette(palette='CMRmap') sns.color_palette(palette='Dark2') sns.color_palette(palette='GnBu') sns.color_palette(palette='Greens') sns.color_palette(palette='Greens_d') sns.color_palette(palette='Greys') sns.color_palette(palette='OrRd') sns.color_palette(palette='Oranges') sns.color_palette(palette='Oranges_d') sns.color_palette(palette='PRGn') sns.color_palette(palette='Paire
🌐
DataCamp
datacamp.com › tutorial › seaborn-palettes
Seaborn Color Palette: Quick Guide to Picking Colors | DataCamp
September 30, 2024 - For even more precise control, you can use HEX codes to define exact colors. This is especially useful when you need to match specific brand colors or create a unique color scheme not available in the built-in palettes. Here's how you can create different types of palettes using color_palette(): ... Creating a qualitative palette with four colors. Image by Author. # Create a sequential palette with 6 colors seq_palette = sns.color_palette("Blues", 6)
🌐
Biomooc
biomooc.com › color › seabornColors.html
seaborn colors - Biomooc
import seaborn as sns ... green']) black(#000000)desert(#ccad60)yellowy green(#bff128)pine green(#0a481e)dull blue(#49759c)violet pink(#fb5ffc) white(#ffffff)bronze(#a87900)green yellow(#c9ff27)tea(#65ab7c)steel(#738595)purpley grey(#947e94) dull red(#bb3f3f)mustard brown(#ac7e04)avocado green(#87a922)light seafoam(#a0febf)cadet blue(#4e7496)pink purple(#db4bda) dried blood(#4b0101)poop brown(#7a5901)pale olive(#b9cc81)dark mint(#48c072)bluish(#2976bb)deep violet(#490648) dark red(#840000)poop(#7f5e00)army green(#4b5d16)co...
Find elsewhere
🌐
Medium
medium.com › analytics-vidhya › deep-dive-into-seaborn-palettes-7b5fae5a258e
Deep Dive into Seaborn: Color Palettes | by Yoann Mocquin | Analytics Vidhya | Medium
November 24, 2022 - the rgb space : a color is defined by a triplet of floating point value between 0 and 1, giving the proportion of red, blue and green.
Top answer
1 of 1
12

Use custom function

As commented you may create a function that if called with a custom colorname returns the hex color from the list.

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

# Wanted palette details
enmax_palette = ["#808282", "#C2CD23", "#918BC3"]
color_codes_wanted = ['grey', 'green', 'purple']

c = lambda x: enmax_palette[color_codes_wanted.index(x)]

x=np.random.randn(100)
g = sns.distplot(x, color=c("green"))

plt.show()

Use the C{n} notation.

It should be noted that all colors in seaborn are matplotlib colors. One option matplotlib provides is the so called C{n} notation (with n = 0..9). By specifying a string like "C1" you tell matplotlib to use the second color from the current color cycle. sns.set_palette sets the color cycle to your custom colors. So if you can remember their order in the cycle you can use this information and just specify "C1" for the second color.

import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

# Wanted palette details
enmax_palette = ["#808282", "#C2CD23", "#918BC3"]

sns.set_palette(palette=enmax_palette)

x=np.random.randn(100)
g = sns.distplot(x, color="C1")

plt.show()

Manipulate the matplotlib color dictionary.

All named colors are stored in a dictionary you can access via

matplotlib.colors.get_named_colors_mapping()

You may update this dictionary with your custom names and colors. Note that this will overwrite existing colors with the same name.

import numpy as np
import matplotlib.pyplot as plt
from matplotlib import colors as mcolors
import seaborn as sns

# Wanted palette details
enmax_palette = ["#808282", "#C2CD23", "#918BC3"]
color_codes_wanted = ['grey', 'green', 'purple']
cdict = dict(zip(color_codes_wanted, [mcolors.to_rgba(c) for c in enmax_palette]))

mcolors.get_named_colors_mapping().update(cdict)
x=np.random.randn(100)
g = sns.distplot(x, color="green")

plt.show()

All codes shown here will produce the same plot in "the company's green" color:

🌐
Towards Data Science
towardsdatascience.com › home › data science › how to use your own color palettes with seaborn
How to use your own color palettes with Seaborn | Towards Data Science
August 22, 2019 - ... # Create an array with the colors you want to usecolors = ["#FF0B04", "#4374B3"]# Set your custom color palettecustomPalette = sns.set_palette(sns.color_palette(colors))# Use the parameter palette and use your own palette across all ...
🌐
Pinterest
pinterest.com › kellyfune3011 › sns-colors-chart
13 Sns colors chart ideas | daisy gel polish ...
13 Sns colors chart ideas | daisy gel polish colors, sns nails colors numbers, sns colors chart · Skip to content · When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures · Log in · Sign up ...
🌐
GeeksforGeeks
geeksforgeeks.org › data visualization › changing-plot-colors-in-seaborn-a-comprehensive-guide
Changing Plot Colors in Seaborn : A Comprehensive Guide - GeeksforGeeks
July 11, 2024 - ... custom_palette = ["#090364", "#091e75", "#093885", "#085396", "#086da6", "#0888b7", "#08a2c7", "#07bdd8", "#07d7e8", "#07f2f9", "#f9ac07", "#c77406", "#963b04", "#640303"] sns.set_palette(custom_palette) sns.scatterplot(x='length', y='type', ...
🌐
EDUCBA
educba.com › home › data science › data science tutorials › seaborn tutorial › seaborn color palette
Seaborn Color Palette | Complete Guide on Seaborn Color Palette
May 14, 2024 - The Color palette accepts the name of the Matplotlib colormap and the seaborn palette. The quantitative palette is good when we need to distinguish the chunks of data. Below example shows the quantitative palette as follows: Code: palette = sns.color_palette() sns.palplot(palette) plt.show() Output: We can also use the circular color system by using it.
Address: Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
DataCamp
campus.datacamp.com › courses › intermediate-data-visualization-with-seaborn › customizing-seaborn-plots
Colors in Seaborn | Python
Since Seaborn is built on top of matplotlib, it is able to interpret and apply matplotlib color codes. By using the familiar sns.set() function with color codes equals True, any matplotlib color codes will be appropriately mapped to the Seaborn palette.
🌐
GitHub
github.com › mwaskom › seaborn › blob › master › seaborn › palettes.py
seaborn/seaborn/palettes.py at master · mwaskom/seaborn
set_color_codes : Reassign color codes like ``"b"``, ``"g"``, etc. to · colors from one of the seaborn palettes. · Examples · -------- · .. include:: ../docstrings/color_palette.rst · · """ if palette is None: palette = get_color_cycle() if n_colors is None: n_colors = len(palette) ·
🌐
SNS Nails
snsnails.com › media › sns-downloads › SNS227-Color-Chart-Insert_R3_05-Low-FB-Pages.pdf
Essential Downloads – SNS Nails
July 28, 2019 - 2019 SNS Color Guide Vol-1 · SNS Dipping Powder Instructions · Polvo De Inmersión SNS Instrucciones · SNS 2017 Posters · SNS Master Match 3 in 1 Color Chart · SNS Air Ombre Color Chart · Why SNS Presentation 2022 · SNS Nail Dipping Powder Safety and Benefits "Research Paper" SDS for SNS Gelous Color Dipping Powders ·
🌐
Amazon S3
s3.amazonaws.com › mteinc › SNS+Print+Materials › SNS+Color+Chart+7.18.pdf pdf
COLOR CHART snsnails.com
SNS offers the widest variety of colors, glitter and dipping powders available · so you can tailor the application · to your client’s needs. Apply Gelous · Base · Dip in · Powder · Apply Gel · Top · 01 · 02 · 03 · 02 · ........................................05 ·