Skip to content

Palettize

Generate, preview, and export colormaps from the command line or Python

9 Export Formats

Export to GDAL, QGIS, SLD, TiTiler, MapLibre GL, Observable Plot, Google Earth Engine, Hex, and RGBA 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.

Terminal window
# Preview a colormap in the terminal
palettize show viridis
# Create a custom gradient and export to GDAL format
palettize create --colors "blue,white,red" --format gdal --output bwr.txt --domain 0,255
# Export to multiple formats at once
palettize create viridis --format gdal,qgis,mapgl --output "{name}_{format}.{ext}"

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