Skip to main content
Research BriefData VisualizationEvidence Review· 7 min read· in Data & Analysis

The 7.5% Visual Distortion Penalty of the Rainbow Colormap

For decades, scientific software defaulted to the vibrant 'Jet' rainbow colormap. Evidence now shows that its uneven luminance actively manufactures false boundaries, increasing diagnostic errors and excluding colorblind readers.

By Nicolas Laurent

Visualization Researchers 40%Accessibility Advocates 35%Applied Scientists 25%
Visualization Researchers
Argues that colormaps must be mathematically derived from human perceptual models rather than hardware color spaces.
Accessibility Advocates
Focuses on the exclusionary impact of legacy colormaps on individuals with color vision deficiencies.
Applied Scientists
Highlights the institutional inertia and practical challenges of changing visualization standards in legacy fields.

Perspectives this story doesn't cover

  • Legacy Software Developers
  • Clinical Diagnosticians

Key points

  • The ubiquitous 'Jet' rainbow colormap visually distorts data by up to 7.5% due to its uneven luminance gradient.
  • Rainbow colormaps manufacture false boundaries, drawing the viewer's eye to bright yellow and cyan bands that do not exist in the raw data.
  • Medical studies show that physicians make significantly more diagnostic errors when reading scans rendered in rainbow colormaps compared to perceptually uniform scales.
  • Red-to-green heatmaps exclude approximately 300 million people worldwide who have some form of color vision deficiency.
  • Perceptually uniform colormaps like Viridis ensure that equal steps in data correspond to equal perceptual steps in color.
  • Despite the evidence, rainbow colormaps remain heavily used in fields like remote sensing due to institutional inertia and legacy software defaults.
7.5%
Maximum visual error distortion caused by rainbow colormaps
300 million
People worldwide excluded by red-green heatmaps
14x
Higher frequency of rainbow colormaps in remote sensing vs visualization research

On October 28, 2020, the journal Nature Communications published a systematic review quantifying a specific failure in scientific communication: the rainbow colormap. Geoscientist Fabio Crameri and his colleagues demonstrated that the ubiquitous red-to-blue gradient, often called 'Jet', was visually distorting data by up to 7.5% through uneven color gradients. The paper marked a formal turning point in a quiet war against a visualization default that had dominated scientific software since the 1990s. By measuring the incremental lightness difference along the color map, the researchers proved that the rainbow's lack of perceptual uniformity was not merely an aesthetic flaw, but a mathematical one that manufactured false boundaries where none existed in the underlying data.[2]

The mechanism behind this distortion lies in how the human eye processes luminance, or brightness. A perceptually uniform colormap ensures that equal steps in data correspond to equal perceptual steps in color. In a rainbow colormap, the brightness climbs and falls erratically. The transition from blue to cyan is bright, the green section is dark, the yellow is intensely bright, and the red drops back to dark. When a viewer looks at a heatmap rendered in Jet, the bright yellow and cyan bands draw the eye immediately, creating the illusion of sharp gradients or anomalies in regions where the actual data is flat.[1]

This perceptual failure has concrete consequences in high-stakes environments. When researchers tested how physicians read artery visualizations, they found that doctors using a rainbow color scheme took longer to reach a diagnosis and made significantly more errors than those using a perceptually designed scale. As one analysis noted, "The color map was not a neutral container for the data. It was an active participant in the diagnosis — and a misleading one." The bright red patches in the Jet colormap artificially amplified the appearance of blood-flow blockages, leading cardiologists to see problems that the raw numbers did not support.[1]

The exclusion extends beyond diagnostic errors to basic accessibility. Approximately 300 million people worldwide—roughly one in 12 men and one in 200 women—live with some form of color vision deficiency. For a large share of this population, the red-to-green journey at the heart of most heatmaps is partly or wholly invisible. When a rainbow colormap is desaturated to grayscale, its non-monotonic luminance causes different data values to map to the exact same shade of gray, rendering the chart entirely illegible to anyone relying on brightness to interpret the scale.[1][3]

Perceptually uniform colormaps maintain a strict, monotonic increase in luminance, preventing the creation of false visual boundaries.

The software industry's pivot away from Jet began in earnest on July 20, 2015, at the SciPy conference in Austin, Texas. Developers Stéfan van der Walt and Nathaniel Smith presented a new default colormap for Matplotlib, the foundational plotting library for the Python programming language. They named it 'Viridis'. Engineered to be perceptually uniform, monotonic in brightness, and legible to viewers with common forms of color blindness, Viridis transitions smoothly from dark purple to blue, green, and finally bright yellow. Equal steps in the data look like equal steps in color, and the order survives even when printed in black and white.[3]

The adoption of Viridis triggered a cascade of changes across the data science ecosystem. The R programming language integrated the colormap through the 'viridisLite' package, which has since become a standard dependency for spatial and statistical visualization. In 2019, a comparative study published in MDPI evaluated the task completion time and correctness rate of participants using different colormaps in node-link diagrams. The researchers found that Viridis was the least error-prone among the colormaps studied, while single-hue blue and the Jet rainbow produced significantly higher error rates in data comprehension.[4]

The adoption of Viridis triggered a cascade of changes across the data science ecosystem.

Despite these empirical findings, the rainbow colormap remains stubbornly entrenched in certain disciplines. A 2026 study published by the American Meteorological Society analyzed the visualization of lidar data—laser-based remote sensing used in atmospheric science. The authors noted that despite three decades of publications showing the artifacts produced by the rainbow colormap, it remains widely used in remote sensing, where it appears 14 times more frequently than in information visualization literature. The high-frequency noise inherent in lidar signals is particularly vulnerable to the hue banding effect of the Jet colormap, which exacerbates the visual clutter.[5]

The persistence of Jet is largely a product of institutional inertia and the default settings of legacy software. Older versions of MATLAB cemented the rainbow as the standard for engineering and physics, and it continues to lurk in spreadsheet conditional formatting and commercial dashboards. Many domain experts accept it as the standard simply because it is familiar, equating its vibrant use of the full visual spectrum with scientific precision. However, as Crameri noted in his 2020 review, "Colour maps that visually distort data through uneven colour gradients or are unreadable to those with colour-vision deficiency remain prevalent in science."[1][2]

Despite known perceptual flaws, rainbow colormaps remain 14 times more common in remote sensing literature than in visualization research.

To correct this, visualization researchers advocate for a strict taxonomy of colormap applications. Sequential data, which progresses from low to high, requires a sequential colormap with monotonically increasing luminance, such as Viridis, Magma, or a simple light-to-dark single-hue ramp. Diverging data, which has a meaningful midpoint like zero or an average, requires a diverging colormap that uses two different hues that meet at a neutral, light color in the center. Categorical data, where there is no inherent order, is the only appropriate use case for distinct, contrasting hues.[2]

The transition to perceptually uniform colormaps represents a broader shift in how the scientific community treats data visualization. It is no longer viewed as an aesthetic afterthought, but as a core component of the analytical pipeline that is subject to the same rigorous standards as the underlying mathematics. A chart that misleads the human visual system is fundamentally no different from a statistical model that introduces bias. By replacing the rainbow with scales engineered for human perception, researchers are closing a critical vulnerability in the communication of quantitative evidence.[1][2][5]

The mathematical foundation of perceptually uniform colormaps relies on advanced color spaces, specifically the CIELAB or CAM02-UCS models. Unlike the standard Red-Green-Blue (RGB) color space, which is tailored to the hardware of computer monitors, these models are designed around human visual perception. In the CAM02-UCS space, the Euclidean distance between two color coordinates directly corresponds to the perceived difference between those colors. By plotting a straight line through this space and mapping it to data values, designers ensure that a 10 percent change in the data always produces exactly a 10 percent change in perceived color.[3]

This mathematical rigor exposes exactly why the RGB-based rainbow fails. When the Jet colormap is plotted in a perceptual color space, its path is highly erratic, featuring sharp corners and varying speeds. The distance between the green and yellow segments is vastly larger than the distance between the blue and cyan segments. This uneven velocity means that the colormap artificially compresses some data ranges while expanding others, effectively applying a hidden, non-linear transformation to the data before it reaches the viewer's brain.[2][3]

When a rainbow colormap is converted to grayscale, its erratic luminance causes different data values to appear identical.

The push for better defaults has also spawned specialized colormaps tailored to specific physiological needs. The 'Cividis' colormap, for example, was developed specifically to optimize viewing for individuals with color vision deficiency. It transitions from dark blue to yellow, avoiding the red and green channels entirely. Because it was generated by simulating how a colorblind viewer would perceive the Viridis scale and then optimizing the result, Cividis ensures that the visual experience is nearly identical for viewers with and without normal color vision.

The evidence against the rainbow colormap is now overwhelming, spanning cognitive psychology, medical diagnostics, and geosciences. Yet the debate highlights a persistent gap between visualization research and applied science. While the tools to create accurate, accessible charts are now freely available and set as defaults in modern libraries, the responsibility falls on the individual researcher or analyst to understand why these choices matter. The data does not speak for itself; it relies entirely on the visual encoding chosen to represent it.[1][5]

How we got here

  1. 1990s

    The rainbow 'Jet' colormap becomes the default in MATLAB and other early scientific software.

  2. 2011

    Harvard researchers publish a study showing rainbow colormaps increase diagnostic errors in heart disease.

  3. July 2015

    Stéfan van der Walt and Nathaniel Smith introduce the perceptually uniform 'Viridis' colormap at SciPy.

  4. October 2020

    Nature Communications publishes a systematic review quantifying the visual distortion caused by rainbow colormaps.

  5. August 2021

    The journal Hydrology and Earth System Sciences formally recommends against the use of rainbow colormaps.

What we don’t know

  • Whether the hue banding effect of rainbow colormaps provides any measurable advantage for estimating variance in highly specific, high-frequency datasets.
  • How quickly legacy commercial software, such as spreadsheet applications, will update their default conditional formatting to perceptually uniform scales.
  • The exact threshold at which a colormap's lack of perceptual uniformity begins to alter public policy preferences, as seen in pandemic data communication.

Sources

Source coverage

6 outlets

3 viewpoints surfaced

Visualization Researchers 40%Accessibility Advocates 35%Applied Scientists 25%
  1. [1]PlotSetAccessibility Advocates

    Your Heatmap Is Lying to 300 Million People

    Read on PlotSet
  2. [2]Nature CommunicationsVisualization Researchers

    The misuse of colour in science communication

    Read on Nature Communications
  3. [3]R-ProjectAccessibility Advocates

    viridis - Colorblind-Friendly Color Maps for R

    Read on R-Project
  4. [4]MDPIVisualization Researchers

    A Comparative Study of Colormaps in Network Visualization

    Read on MDPI
  5. [5]American Meteorological SocietyApplied Scientists

    A Set of Colormaps Designed for Lidar Data Visualization

    Read on American Meteorological Society
  6. [6]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Data & Analysis stories with full source coverage and perspective breakdowns delivered to your inbox.