---
title: "Get Palette Name"
---

WARNING(long_description missing)

### Usage

<pre><code class='language-python'>palette.name()</code></pre>

### Return

Returns `None` if the palette is unnamed, else
the name of the palette as `str`.

### Examples

```{python}
#| echo: true
#| warning: true
#| error: true
from colorspace import palette
# Unnamed palette
pal = palette(["#11C638", "#E2E2E2", "#EF9708"])
pal.name()
```

```{python}
#| echo: true
#| warning: true
#| error: true
type(pal.name())
```

```{python}
#| echo: true
#| warning: true
#| error: true
# Named palette
pal = palette(["#11C638", "#E2E2E2", "#EF9708"],
              name = "My Custom Palette")
pal.name()
```



