# Diff

Canonical URL: https://colorcurio.us/colormaps/cmocean.diff
Source type: Colormap
Type: diverging
Collection: cmocean
Attribution: Thyng, Greene, Hetland, Zimmerle, DiMarco 2016, Oceanography 29(3)
License: MIT
Source: https://matplotlib.org/cmocean/
Tags: oceanography, blue-orange
Stops: 256

## Summary

Diff is a diverging colormap from cmocean. Two arms meet at a pivot of lightness 0.96, hue sweeps 242° from blue to green, and order holds under all three colorblind simulations.

Designed for anomalies of fields with non-zero baseline.

## Perceptual profile (OKLCh)

- Lightness: 0.253 → 0.239 (range 0.723, min 0.239, max 0.962); non-monotonic; midpoint 0.962
- Chroma: min 0.002, max 0.072, mean 0.040
- Hue: 252.8° → 120.4° (span 241.7°), path monotonic-cw; quadrants: blue, azure, yellow, chartreuse, green
- Pivot: t 0.498, lightness 0.962, hue jump 39.0°, smoothness 0.469
- Endpoint temperature: cool → neutral
- Perceptual ΔE: total 142.1, mean/step 0.557, max step 0.708, smoothness 0.841, speed 0.557

## Colorblind safety (ΔE under simulated CVD)

- Protanopia: ΔE total 137.0; preserves order: yes
- Deuteranopia: ΔE total 139.1; preserves order: yes
- Tritanopia: ΔE total 142.4; preserves order: yes

## Related

- Family: [cmocean](https://colorcurio.us/colormaps/families/cmocean)
- Source: [Thyng, Greene, Hetland, Zimmerle, DiMarco 2016, Oceanography 29(3)](https://matplotlib.org/cmocean/)
- Similar diverging maps: [Balance](https://colorcurio.us/colormaps/cmocean.balance), [Curl](https://colorcurio.us/colormaps/cmocean.curl), [Delta](https://colorcurio.us/colormaps/cmocean.delta), [Tarn](https://colorcurio.us/colormaps/cmocean.tarn)
- [All colormaps](https://colorcurio.us/colormaps)
