A color palette manager and matplotlib plotting utility for Python.
Free software: GNU General Public License v3
Documentation: https://pyscal.github.io/pychromatic/
Features
22 curated color palettes including 4 colorblind-friendly sets (Okabe–Ito, Tableau 10, Tol Bright, Tol Muted)
Color manipulation: brighten, darken, mix, find intermediates
Color format conversions: hex, RGB, HLS
Sample any matplotlib colormap with get_color(0.5, 'viridis')
Generate matplotlib colormaps from any palette with palette_cmap()
Opinionated matplotlib plot templates (Multiplot, BrokenAxes)
chromatify decorator for auto-styling matplotlib subplots
Rich terminal color preview via Color.display()
Installation
$ pip install pychromatic
For development:
$ pip install -e ".[dev]"
Quick Start
from pychromatic import Palette, Color
# Use a built-in palette
p = Palette('default')
p.show()
# Work with individual colors
c = Color('#1976d2', name='blue')
c.brighten(0.2)
c.display()
# Sample a matplotlib colormap
from pychromatic import get_color, palette_cmap
hex_color = get_color(0.5, 'viridis') # '#21918c'
# Build a cmap from any pychromatic palette
cmap = palette_cmap('rainbow')
Colorblind-Friendly Palettes
pychromatic ships four accessibility-first palettes that can be used as Palette objects or imported directly as plain dictionaries:
from pychromatic import okabe_ito, tableau10, tol_bright, tol_muted
# Use as a Palette object
p = Palette('okabe_ito')
p.show()
# Or grab individual hex values from the dict
print(okabe_ito['orange']) # '#E69F00'
print(tableau10['teal']) # '#76B7B2'
Available colorblind palettes:
okabe_ito — 8 colors from the Okabe & Ito (2008) universal palette
tableau10 — 10 colors from Tableau’s default categorical palette
tol_bright — 7 high-contrast colors from Paul Tol’s bright scheme
tol_muted — 9 low-chroma colors from Paul Tol’s muted scheme
Available Palettes
Name |
Colors |
Type |
|---|---|---|
default |
15 |
qualitative |
pastels |
12 |
qualitative |
basics |
9 |
qualitative |
set1_dark |
8 |
qualitative |
set1_pastel |
8 |
qualitative |
excel |
7 |
qualitative |
set2 – set7 |
5 |
qualitative |
5 |
qualitative |
|
dark |
5 |
qualitative |
earth |
5 |
qualitative |
rainbow |
5 |
sequential |
accent |
15 |
qualitative |
okabe_ito |
8 |
qualitative (colorblind-safe) |
tableau10 |
10 |
qualitative (colorblind-safe) |
tol_bright |
7 |
qualitative (colorblind-safe) |
tol_muted |
9 |
qualitative (colorblind-safe) |
Metadata
Release files for pychromatic 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pychromatic-0.6.1.tar.gz | 835.2 kB | With provenance | Details for pychromatic-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pychromatic-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for pychromatic-0.6.1-py3-none-any.whl |
Total release size: 854.8 kB
Release files / pychromatic-0.6.1.tar.gz
| Download URL | pychromatic-0.6.1.tar.gz |
|---|---|
| Size | 835.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47a4fdfead5b85a2e4490b8424ea749818a41416a3178da2f6000dab72abf3ab
|
|
BLAKE2b-256 checksum How to use checksums |
03d7a718e2f4cc849b9c636b1c43dfe9e043a02accb9e58fe436411a12cb48e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logRelease files / pychromatic-0.6.1-py3-none-any.whl
| Download URL | pychromatic-0.6.1-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76e36ebf28d1e96fd638642424b27d20b41cbbb882329c4ab5652da3cec7d128
|
|
BLAKE2b-256 checksum How to use checksums |
0134a4b0dc244f97093344b35fc354c45264252fa5b1864e6e175c28c7043ce4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logSecurity for pychromatic 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pychromatic-0.6.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.