Colormap Generator

Generate color maps (colormaps) for data visualization. Create gradient color scales in various formats (HEX, RGBA, RGBA String, Float) with customizable precision and transparency. Perfect for mapping applications, scientific visualizations, and data analysis.

Settings

Number of color steps in the colormap (1-256)

Transparency value (0.0 = transparent, 1.0 = opaque)

Output

Click 'Generate' to create a colormap

How to use:

  1. Select a colormap type from the dropdown (e.g., 'jet', 'viridis', 'hot', 'cool')
  2. Set the number of color steps (nshades) between 1 and 256
  3. Choose the output format: HEX, RGBA String, RGBA Array, or Float Array
  4. Adjust the alpha (opacity) value if needed
  5. Click 'Generate' to create the colormap and view the preview

About Colormap

A colormap (also called a color scale or color palette) is a range of colors used to represent data values in visualizations. Different colormaps are suited for different types of data: sequential colormaps (like 'viridis', 'plasma') are good for ordered data, diverging colormaps (like 'rdbu', 'bluered') are good for data with a meaningful midpoint, and qualitative colormaps are good for categorical data.

This tool uses the colormap library (https://github.com/bpostlethwaite/colormap) which provides a wide variety of color maps inspired by matplotlib, cmocean, and other visualization libraries.