Skip to content
A viridis colormap gradient from purple through teal and green to yellow

Palettize

Preview, check, and export colormaps from the command line or Python

14 Export Formats

Export to GDAL, QGIS, SLD, TiTiler, MapLibre GL, Observable Plot, GEE, JSON, CSS, SVG, GIMP, Hex, RGBA, and HSL formats.

Advanced Interpolation

Use various color spaces like Oklch, sRGB, LAB, and HCL via the ColorAide library.

Flexible Scaling

Apply linear, power, sqrt, log, or symlog scaling to map your data domain to colors.

Rich Presets

Access hundreds of colormaps from the cmap library including viridis, magma, inferno, and more.

Perceptual Checks

Check lightness, uniformity, and color-vision deficiency before you publish.

Save and Reuse

Save a colormap to JSON and pass that file anywhere a preset name works.

Terminal window
# Run instantly with uvx (no installation required)
uvx palettize show viridis
# Preview a colormap in the terminal
palettize show viridis
# Check it before you publish
palettize analyze viridis
# Save a cut of the map, then reuse the file
palettize create viridis --cut 0.2,0.8 --save my-map.json
palettize create my-map.json --format gdal --output ramp.txt --domain 0,255

Palettize bridges the gap between data visualization and GIS/web mapping workflows. Instead of manually creating color ramps in different formats, Palettize lets you:

  • Define once, export everywhere: Create a colormap and export it to any supported format
  • Preview instantly: See your colormap in the terminal before exporting
  • Use perceptually uniform color spaces: Get better color interpolation with Oklch and LAB
  • Scale to your data: Map colormaps to your actual data domain with various scaling functions
  • Check before you publish: Lightness, perceptual step size, and color-vision previews are built in