Color Theory for Maps

Color Theory for Maps

A few years ago I was asked to review a map that had been produced for a public consultation on flood risk. It was a technically excellent piece of work, with careful modeling, accurate boundaries and honest data. But it used a rainbow from red to violet to show water depth, and nobody in the room could say whether the darkest blue meant “very deep” or “very shallow”. A resident put it bluntly: “I can’t tell if my house is in trouble or not.” Weeks of analysis had been defeated by a choice of colors.

I tell this story because color is the most powerful tool a mapmaker has, and the one most often used without thought. A good palette makes a pattern leap off the page. A bad one hides it, distorts it or turns it into a lie. And because software offers us sixteen million colors with a single click, the temptation is to choose by taste, when the real answer lies in how people see and how data behaves.

In this guide I’ll give you the practical theory that I’ve applied for thirty years: the language of color, the three types of palettes and when to use each, how to design for color-blind readers and for print, and the habits that make a map both beautiful and truthful. It complements the broader design guidance in Cartography Principles: Designing Maps That Communicate.

Illustration: Use sequential schemes for ordered values, diverging schemes around a midpoint and qualitative schemes for categories.
Use sequential schemes for ordered values, diverging schemes around a midpoint and qualitative schemes for categories.

The Language of Color: Hue, Saturation and Lightness

Before choosing colors, we need words to describe them. Every color can be described by three attributes.

  • Hue: the “kind” of color, such as red, green or blue. It’s the position on the color wheel.
  • Saturation (or chroma): the purity or intensity of the color. A saturated red is vivid. A desaturated red is dull, grayish.
  • Lightness (or value): how light or dark the color is, from black to white.

On maps, these three attributes do different jobs:

  • Hue distinguishes categories, things that differ in kind.
  • Lightness (and, to a lesser extent, saturation) shows order and magnitude, things that differ in amount.

This is the single most useful idea in cartographic color: use hue for “what kind” and lightness for “how much”. Most color mistakes come from reversing them.


Color Models: How Software and Printers Think

Different tools describe color in different ways. Knowing the main models helps you avoid surprises.

  • RGB (red, green, blue): the model of screens, which mix light. Colors are expressed as three numbers from 0 to 255, or as a hexadecimal code such as #2b8cbe. Used for web maps and presentations.
  • CMYK (cyan, magenta, yellow, black): the model of printing, which mixes ink. It has a smaller range (gamut) than RGB, so some bright screen colors, especially vivid blues and greens, can’t be reproduced in print and look duller.
  • HSL or HSV: describe color by hue, saturation and lightness, which is convenient for adjusting a color, but isn’t perceptually uniform. Two colors with the same “lightness” value can look very different in brightness.
  • CIELAB and LCH: perceptually based models, designed so that equal numeric steps correspond to roughly equal perceived differences. Palette designers use them to build ramps where each step looks equally different from the next. Modern tools, such as perceptual palettes like viridis, are built this way.

For everyday map work you will mostly pick colors from tested palettes. But remember the central point: a numeric step in a color model is not always a visual step. That’s why well-designed palettes beat arbitrary gradients.


Why Color Is Harder Than It Looks

Several quirks of human vision make color tricky.

  • Simultaneous contrast: a color looks different depending on its neighbors. A medium gray looks lighter on a dark background and darker on a light one. In a choropleth, the same fill can look different next to different neighbors, which affects how readers compare areas.
  • Limited ability to compare far-apart colors: readers must match the color on the map to the legend, a task that gets difficult with many similar shades.
  • Uneven sensitivity: we’re more sensitive to differences in some hues and lightness ranges than others. Yellow looks lighter than blue even at the same “brightness” setting.
  • We can distinguish only a handful of lightness steps in a sequence. Beyond about seven or eight, adjacent classes become hard to tell apart.
  • Color vision deficiency affects a substantial share of readers, as we will see.
  • Context and culture shape meaning. Red signals danger in many places, luck in others.

Good palettes respect these limits.


The Three Types of Palettes

The data decides the palette. There are three fundamental types, and choosing correctly is the heart of the matter.

1. Sequential palettes: for ordered data from low to high

Use a sequential palette when values range from low to high with no meaningful midpoint: population density, rainfall, income, elevation, percentage of forest.

  • How it works: lightness changes steadily from light (low) to dark (high), usually within one hue or a blend of two or three neighboring hues.
  • Convention: on a light background, darker means more. Reverse it on a dark background, where brighter means more.
  • Examples: a light-to-dark blue for rainfall. Yellow through orange to dark red for temperature or intensity.

2. Diverging palettes: for data with a meaningful center

Use a diverging palette when the data has a critical midpoint and you care about deviation in both directions: change above and below zero, difference from the average, profit and loss, temperature anomalies, voting margins.

  • How it works: two contrasting hues, such as brown and blue-green, or red and blue, meet at a light neutral midpoint, and get darker as values move away from the center in each direction.
  • The midpoint must be meaningful and must match the class breaks. If the neutral color falls on a value that isn’t the true center, the map misleads.
  • Examples: population change (loss in one hue, growth in the other), deviation from the long-term average.

3. Qualitative (categorical) palettes: for categories without order

Use a qualitative palette when classes differ in kind: land cover, soil type, land use, political party, road type.

  • How it works: distinct hues with similar lightness and saturation, so that no category seems more important than another by accident.
  • Limit the number: the eye can reliably distinguish and remember only about seven to twelve colors on a map. Beyond that, group categories, use patterns or labels, or reconsider the design.
  • Conventions help: blue for water, green for vegetation, tan and brown for bare land and relief, gray for built-up areas. Readers decode familiar colors faster.

A fourth case: bivariate palettes

When you map two variables at once, such as income and education, a bivariate palette combines two sequential ramps into a grid of colors. It is powerful, but demanding for readers, and needs a clear, well-explained legend. Use it for specialist audiences, and test it.


The Rainbow Problem

The “rainbow” or “jet” palette, running through red, orange, yellow, green, blue and violet, is the most common bad choice in scientific mapping. It looks vivid and impressive. It also:

  • Has no natural order. Is green higher than blue? Viewers have to consult the legend to know.
  • Creates false boundaries. Bright bands such as yellow and cyan appear as edges in smooth data, where none exist.
  • Hides detail in some ranges, with a perceptual dead zone where very different values look alike.
  • Fails for color-blind readers, because it depends on red-green differences.
  • Turns to uneven shades in grayscale, with strange bright and dark bands.

If you take away one rule: avoid the rainbow for ordered data. Use a sequential palette whose lightness increases smoothly.


Tested Palettes You Can Trust

You don’t have to design palettes from scratch. Excellent ones exist.

ColorBrewer

Created by the cartographer Cynthia Brewer, ColorBrewer (colorbrewer2.org) offers carefully tested sequential, diverging and qualitative palettes, with options marked as color-blind safe, print friendly and photocopy safe, and varying numbers of classes. It is built into QGIS and many other tools, and it’s my first stop.

Viridis family and perceptually uniform ramps

Viridis and its relatives (magma, inferno, plasma and cividis) were designed so that equal steps in data produce equal perceived steps, remain readable in grayscale, and work for most forms of color vision deficiency. Excellent for continuous data such as elevation, temperature or density.

Other resources

  • Palette tools and accessibility checkers, which let you preview a palette on example maps, and simulate color blindness.
  • Built-in schemes in QGIS and ArcGIS Pro, which include many tested ramps.
  • Okabe and Ito’s palette, designed for color-blind readers and very good for categorical data.

A few sample palettes

TypeNameFive-class colors (hex)
SequentialBlues#eff3ff #bdd7e7 #6baed6 #3182bd #08519c
SequentialYellow-orange-red#ffffb2 #fecc5c #fd8d3c #f03b20 #bd0026
DivergingRed-blue#ca0020 #f4a582 #f7f7f7 #92c5de #0571b0
QualitativeSet2#66c2a5 #fc8d62 #8da0cb #e78ac3 #a6d854
Qualitative (color-blind safe)Okabe-Ito#E69F00 #56B4E9 #009E73 #F0E442 #0072B2

How Many Classes? How Many Colors?

  • Sequential and diverging maps: three to seven classes are comfortable for most readers, and five is a sound default. More classes mean finer detail but harder legend reading. Continuous ramps are suitable for rasters and surfaces.
  • Qualitative maps: keep to about seven to twelve categories at most, fewer if the categories are small or scattered.
  • Match classes to the data, not to the palette. The classification method (equal interval, quantile, natural breaks) changes the story. See Choropleth, Heat, and Proportional Symbol Maps: When to Use Each.

Designing for Color Vision Deficiency

Roughly one in twelve men and one in two hundred women have some form of color vision deficiency, most commonly difficulty distinguishing red from green. On any public map, you will have readers who are affected.

The main types

  • Deuteranopia and deuteranomaly: reduced sensitivity to green light. The most common.
  • Protanopia and protanomaly: reduced sensitivity to red light.
  • Tritanopia and tritanomaly: difficulty with blue and yellow. Rare.
  • Complete color blindness (achromatopsia): very rare.

How to design for it

  • Never rely on red versus green alone to carry meaning, such as “good” and “bad”.
  • Use lightness differences as well as hue, so categories and classes differ in darkness. A palette that survives conversion to grayscale is usually safe.
  • Choose color-blind-safe palettes, such as those marked in ColorBrewer, viridis and Okabe-Ito.
  • Combine color with other cues: patterns, symbol shapes, line styles and direct labels.
  • Test your map with a simulator, which shows approximately how it looks to people with different deficiencies. Many free tools and software features exist.
  • Prefer blue-orange or blue-red diverging schemes over red-green ones.

Designing for color-blind readers isn’t a favor to a minority. It usually makes the map clearer for everyone, including people reading on a bright phone in the sun.


Contrast, Legibility and the Basemap

Contrast for text and symbols

Text and thin lines need strong contrast with their background, or readers can’t read them. Accessibility guidelines for web content recommend a contrast ratio of at least 4.5 to 1 for normal text, and 3 to 1 for large text and for graphical elements that carry meaning. Check labels over colored areas, especially light text on mid-tone fills.

  • Add halos (buffers) around labels so they stay readable over busy backgrounds.
  • Avoid thin colored lines on colored fills unless they contrast clearly.

Figure and ground

The theme of your map is the figure. The basemap is the ground. Keep the ground quiet.

  • Use muted, desaturated, light basemaps (soft grays, pale neutrals) so that vivid data colors stand out.
  • Reserve saturated colors for the information that matters most.
  • Use transparency carefully. A semi-transparent layer over imagery or a basemap changes its apparent color, and the legend color no longer matches what readers see. Test the final appearance.

Light and dark themes

Dark-mode maps are popular for dashboards and screens. On a dark background, lighter or brighter colors mean more, and many palettes must be adapted or reversed. Don’t simply invert a map made for a light background. Test it.


Color Conventions and Meaning

Conventions speed up reading. Break them only with a reason.

  • Blue: water, oceans, lakes and rivers.
  • Green: vegetation, forests and parks.
  • Brown and tan: terrain, relief, bare land and deserts.
  • White, light blue and light gray: snow, ice and polar areas, or neutral backgrounds.
  • Red and orange: warnings, danger, heat, high intensity.
  • Gray: built-up areas, roads, background information.
  • Yellow: caution, or the middle of a heat scale.

Cultural caution

Colors carry different meanings in different cultures. Red can signify danger, celebration, luck or mourning. White can mean purity or mourning. Political colors vary by country, and the same color can represent opposing parties in different places. For international audiences, always explain colors in the legend and avoid relying on cultural associations.

Emotional tone

Colors influence mood. Saturated reds and oranges feel urgent. Cool blues and greens feel calm. A map of a health crisis in blazing red conveys alarm, which might be appropriate, or manipulative. The honesty principles in Cartography Principles: Designing Maps That Communicate apply here: never choose a palette to exaggerate a pattern.


Color for Print vs. Screen

  • Screen (RGB): a wide gamut, with backlit, vivid colors. Screens vary in calibration, and a phone in sunlight washes out subtle differences. Prefer bolder contrasts for outdoor viewing.
  • Print (CMYK): a smaller gamut, and the paper changes the result. Matte paper absorbs ink and darkens colors. Vivid RGB blues and greens may print duller.
  • Convert and proof: if you design in RGB for print, convert to CMYK early and check a printed proof.
  • Use pure black text (100 percent black ink only) for small type, instead of a four-color black, to avoid registration problems.
  • Beware of very light tints, which may disappear in print, and of very dark ones, where details fill in.
  • Consider the reproduction method: photocopies and black-and-white printing need palettes that work in grayscale.
  • Spot colors can be used for specific brand or accuracy needs in professional printing.

A Practical Workflow for Choosing Colors

  1. Identify the data type: categories, ordered values or values around a midpoint?
  2. Choose the palette type: qualitative, sequential or diverging.
  3. Decide the number of classes, and the classification method.
  4. Pick a tested palette, rather than inventing one. Prefer color-blind-safe options.
  5. Check the midpoint for diverging maps.
  6. Set the basemap to quiet, neutral tones.
  7. Apply and look. Does the pattern you want to show stand out?
  8. Check contrast of labels and lines.
  9. Simulate color vision deficiency, and view in grayscale.
  10. Check the final medium: a phone, a projector, a printed page.
  11. Test with someone who hasn’t seen the map. Can they read the legend and say what the darkest color means?
  12. Document your choices in the legend and the notes.

Applying Palettes in Software

QGIS

In Layer Properties > Symbology, choose Graduated, Categorized or Singleband pseudocolor, then pick a color ramp. QGIS includes ColorBrewer ramps and viridis-type ramps. You can also invert ramps, and create custom ones. Layout tools let you control legends.

ArcGIS Pro

In the Symbology pane, choose a primary symbology (Graduated Colors, Unique Values and others) and select from the color schemes, which include ColorBrewer-based and accessible options. You can edit the schemes and customize the classes.

Python

import geopandas as gpd

gdf = gpd.read_file("districts.gpkg")

# Sequential palette, five quantile classes (needs the mapclassify package)
ax = gdf.plot(column="rate", cmap="YlOrRd", scheme="quantiles", k=5,
              legend=True, edgecolor="white", linewidth=0.3)
ax.set_axis_off()

# A perceptually uniform, color-blind-friendly alternative for continuous data
gdf.plot(column="rate", cmap="viridis", legend=True)

Web maps

Colors are specified as hex codes, RGB values or named colors in the styling code. Use CSS variables to keep palettes consistent across a website. See How to Create a Web Map (Leaflet, Mapbox, OpenLayers).


Common Mistakes

  • Using the rainbow for ordered data.
  • Using hue to show magnitude, or lightness to show categories.
  • Too many colors, so that the legend becomes a puzzle.
  • A diverging palette without a meaningful midpoint, or with a midpoint at the wrong value.
  • Red and green as the only difference.
  • Highly saturated colors over large areas, which tire the eye and dominate the page.
  • A busy, colorful basemap that fights with the data.
  • Transparent layers whose apparent colors no longer match the legend.
  • Ignoring grayscale and print conditions.
  • Choosing a palette to make the pattern look more dramatic than the data justify.
  • Inconsistent colors across a map series. The same class should have the same color in every map.
  • Forgetting to check text contrast on colored fills.
  • Assuming that your screen is the reader’s screen.

A Short Checklist

  • Does the palette type match the data (sequential, diverging or qualitative)?
  • Does lightness carry the order, and hue the categories?
  • Is the number of classes reasonable?
  • Is the palette tested and color-blind friendly?
  • Does the map survive in grayscale?
  • Is the basemap quiet, and the figure vivid?
  • Is the text legible against every background it crosses?
  • Is the legend clear, and the midpoint explained where relevant?
  • Have I checked the final medium, whether screen or print?
  • Is the choice honest, and not chosen to exaggerate?

Final Thoughts

Color is not decoration. It is data encoding, and every choice you make tells the reader something, whether you intend it or not. The good news is that you don’t need an artist’s eye to make good choices. You need a few principles: let the data type choose the palette, use lightness for order and hue for category, rely on tested palettes, and check how others will see your map.

Take a map you’ve already made, perhaps one with a default rainbow, and redo its colors with a sequential palette from ColorBrewer. Then view both in grayscale and with a color-blindness simulator. The difference will make the case better than any article could.

Where to go next: apply your palettes in Choropleth, Heat, and Proportional Symbol Maps: When to Use Each, and publish your work with How to Create a Web Map (Leaflet, Mapbox, OpenLayers).

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.