Skip to content

Colors & Colormaps

polarise ships with a curated set of built-in colors and colormaps that work with no additional dependencies. Built-in colormaps cover sequential and divergent use cases and are sourced directly from authoritative cpt-city files for pixel-accurate color reproduction.

When popular visualization packages are installed, polarise seamlessly extends its colormap support to their full collections — including matplotlib, cmcrameri (Fabio Crameri's Scientific Colour Maps), colorcet (Peter Kovesi's ColorCET), and colorspace (HCL-based perceptually uniform palettes).

Any colormap — whether built-in or from an optional package — can be reversed by appending _r to its name. For example, nuuk_r reverses the nuuk colormap from cmcrameri, and CET_L19_r reverses the built-in CET_L19.

Colors are available as named strings in any fill= or color= parameter. Colormaps are available in any cmap= parameter.

Fixed Colors

IBM Carbon Alerts

Status and alert colors from IBM Carbon Design System

alert_red
#DA1E28
alert_orange
#FF832B
alert_yellow
#FDDC69
alert_green
#24A148

CSS Standard

Standard CSS/web colors, organized by color family

Reds & Yellows

darkred
#8B0000
red
#FF0000
orange
#FFA500
gold
#FFD700
yellow
#FFFF00

Blues & Greens

navy
#000080
blue
#0000FF
steelblue
#4682B4
lightblue
#ADD8E6
lightgreen
#90EE90
olivegreen
#6B8E23
green
#008000
darkgreen
#006400

Purples & Pinks

purple
#800080
pink
#FFC0CB

Greys

white
#FFFFFF
lightgray
#D3D3D3
silver
#C0C0C0
gray
#808080
darkgray
#A9A9A9
black
#000000

Colormaps

built-in · selected from cmcrameri

Sequential
hawaii
acton
nuuk
lipari
davos
buda
Divergent
vik
managua

built-in · selected from colorcet

Sequential
CET_L20
CET_L19
CET_L17
Divergent
CET_D11
CET_D12
CET_I3

built-in · selected from matplotlib

viridis
plasma

built-in · selected from Diane Simoni

orange-to-purple

Custom Single-Hue

grays
reds
blues
greens

Sources & References

Source Type Colormaps
Fabio Crameri (v8.0.1) Sequential hawaii, acton, nuuk, lipari, davos, buda
Fabio Crameri (v8.0.1) Divergent vik, managua
Peter Kovesi / ColorCET Sequential CET_L17, CET_L19, CET_L20
Peter Kovesi / ColorCET Divergent CET_D11, CET_D12, CET_I3
matplotlib Sequential viridis, plasma
Custom single-hue Sequential grays, reds, blues, greens
Diane Simoni Sequential orange-to-purple

Scientific colour maps by Fabio Crameri — MIT license
https://www.fabiocrameri.ch/colourmaps/
Perceptually uniform sequential and diverging colormaps, sourced from cpt-city.

ColorCET by Peter Kovesi — CC BY 4.0
https://colorcet.com/
Perceptually uniform colormaps, sourced from cpt-city.

matplotlib — Hunter, J. D. (2007). Matplotlib: A 2D graphics environment.
Perceptually uniform sequential colormaps: viridis, plasma.

IBM Carbon Design System — Alert/status colors
https://carbondesignsystem.com/