HUD, Colors & Icons
chroma.js
Build and inspect color ramps in JavaScript for legends, terrain and heatmaps.
Free · Open source · BSD-3-Clause (code); Apache-2.0 (ColorBrewer palettes)
Choose a color scheme that matches the meaning of your map data.
Sequential schemes communicate ordered magnitudes, diverging schemes emphasize a midpoint, and qualitative schemes separate categories. Pick the data relationship before choosing the number of classes.
Choose the class count and scheme type, then test the palette on the actual map and background. Carry the same class order into the legend and retain the license details when redistributing scheme definitions.