# qualpal.list\_palettes

Python · 1.1.0

[Source](<https://github.com/jolars/qualpal-py/blob/72a59d3a05195fb48e82e53ededa466950ed7d67/qualpal/utils.py>)

```python
list_palettes() -> dict[str, list[str]]
```

List all available named color palettes.

<a id="returns"></a>

## Returns

*dict\[str, list\[str\]\]*

Dictionary mapping package names to lists of palette names.
Use these names with the format “package:palette” when creating
a Qualpal object.

<a id="examples"></a>

## Examples

```python
>>> from qualpal import list_palettes
>>> palettes = list_palettes()
>>> 'ColorBrewer' in palettes
True
>>> print(palettes['ColorBrewer'][:3])
['Accent', 'Blues', 'BrBG']
```

```python
>>> # Use with Qualpal
>>> from qualpal import Qualpal
>>> qp = Qualpal(palette='ColorBrewer:Set2')
>>> pal = qp.generate(5)
```
