palettable
Color palettes for Python
What it is and what it does
Palettable is a pure-Python library that bundles curated color palettes for use in data visualization and web design. It originated as brewer2mpl and provides ready-to-use color schemes that can be consumed directly as lists or integrated with matplotlib to style plots. The package has no runtime dependencies, making it lightweight to install and use.
Developers typically use Palettable to avoid hand-picking colors or reinventing color-selection logic. It's useful when you need a consistent, professionally-designed palette for matplotlib plots, web interfaces, or any context where you want to apply a predefined color scheme without building one from scratch. The library supports modern Python versions (3.7 through 3.11) and is classified under Scientific/Engineering Visualization.
Use it for:
- Customize matplotlib plots with professional color schemes instead of default colors.
- Supply a consistent set of colors for web application interfaces and dashboards.
- Build data visualization tools that need multiple predefined color palettes for different contexts.
- Create accessible visualizations by selecting from palettes designed with perceptual uniformity in mind.
- Prototype multi-series plots quickly without manually defining RGB or hex color values.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Palettable provides a library of color palettes for Python that can be used directly or integrated with matplotlib to customize plots and supply colors for web applications.
Yes. Palettable is a lightweight, dependency-free utility with permissive licensing and no known vulnerabilities. It's well-suited for any Python project needing color palettes for visualization or web design. The aging maintenance status (last release 2023-04-19) is a minor note—the package is stable and feature-complete—but the recent repository activity suggests it's not abandoned. Install it if you want to avoid color-picking overhead.
Install
palettable on PyPI
pip
pip install palettableuv
uv add palettablepoetry
poetry add palettableInstalling palettable
Before you install
Installation is straightforward with no runtime dependencies and a pure-Python wheel distribution. The package is aging—last release was 2023-04-19—but the repository remains active with a recent commit on 2025-08-23 and 816 stars, suggesting ongoing maintenance despite infrequent releases.
License in practice
Licensed under MIT (permissive), allowing unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations beyond attribution.
Quickstart
pip install palettable
from palettable.cartocolors.sequential import Viridis_20
colors = Viridis_20.hex_colors
Verify before relying
- How many distinct color palettes are included in the library and which color systems they represent (e.g., ColorBrewer, Carto, Tableau).
- Whether matplotlib integration is automatic or requires explicit configuration steps beyond importing.
- Performance characteristics when working with large numbers of colors or in high-throughput visualization pipelines.
Package facts
| License | palettable Copyright (c) 2019 Matt Davis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 1,213 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,662,651/month — #3,672 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: palettable-3.3.3-py2.py3-none-any.whl
Tags
More Visualization packages
matplotlib creates static, animated, and…
permissive · top 1,000 on PyPI
contourpyContourPy calculates contours of 2D…
permissive · top 1,000 on PyPI
plotlyPlotly is an interactive, browser-based…
permissive · top 1,000 on PyPI
graphvizGenerates DOT language source code for graph…
permissive · top 1,000 on PyPI
streamlitStreamlit transforms Python scripts into…
permissive · top 1,000 on PyPI
leatherLeather is a lightweight Python charting…
permissive · top 1,000 on PyPI
brewer2mplProvides access to all 165 ColorBrewer2.org…
permissive · top 15,000 on PyPI
cmapcmap provides a collection of scientific…
permissive · top 15,000 on PyPI
distinctipyGenerates lists of visually distinct colors of…
permissive · top 15,000 on PyPI
matplotlib-scalebarAdds a matplotlib artist that renders a…
permissive · top 15,000 on PyPI
plotillePlotille renders plots, scatter plots,…
permissive · top 15,000 on PyPI
cyclerCycler provides composable style cycles for…
permissive · top 1,000 on PyPI
cellpylibCellPyLib simulates 1- and 2-dimensional…
permissive · top 15,000 on PyPI
cmweathercmweather provides a collection of colormaps…
permissive · top 15,000 on PyPI
mplfinancemplfinance provides matplotlib-based…
permissive · top 15,000 on PyPI