asist·space · IsoChroma Workbook

Workbook: IsoChroma - The Cartographic Color Workbench

Welcome to IsoChroma, a high-precision instrument for cartographic color design. Unlike standard color pickers, IsoChroma leverages perceptual color science (CIELCH / HCL) and rigorous gamut validation to ensure your palettes are mathematically sound, aesthetically pleasing, and accessible to all users.

This workbook serves as a comprehensive guide to mastering the IsoChroma environment.


1. Core Philosophy: The Perceptual Advantage

Traditional RGB and Hex-based workflows are "device-dependent," meaning $50\%$ brightness in one space might look different in another. IsoChroma uses the CIELCH (Lightness, Chroma, Hue) model:

By fixing Lightness while varying Hue or Chroma, you create palettes with perceptual uniformity, ensuring that no single color in a map stands out simply because it "glows" more than others.

All color calculations happen on the backend color engine (Python / colour-science), making it the single source of truth. The frontend never computes colors locally, every hex, RGB, CMYK, LAB, and OKLCH value you see has been resolved server-side for mathematical precision.


2. Navigating the Interface

The application is organized into a three-step sequential workflow with a sticky right sidebar for mode selection:

The sidebar on the right side of the screen is always visible. It contains six buttons to switch between ramp modes:

Switching modes clears the current selection and resets the workbench to the new mode's default configuration.

Step 1: Color Input

ColumnDescription
IDMarker identifier (●, A, B, S, E, or anchor numbers for Cyclic)
HEXEditable hex input — press Enter to resolve via backend
RGBEditable RGB triplet — press Enter to resolve
OKLCHEditable OKLCH triplet — press Enter to resolve
CMYKRead-only print reference values
LABRead-only scientific reference values
Color NameHuman-readable name (i.e., "NYC TAXI", "DEEP CERULEAN")

The HEX field shows a gold border when the entered color has been clamped to sRGB gamut from a wider Display P3 original. This visual indicator warns you that the displayed HEX is an approximation of your true P3 color.

The number of rows changes dynamically based on the the Ramp Type you select:

Step 2: Workbench

This is where you define the structure of your color ramp. The panel content changes based on the ramp type selected in the sidebar (see Section 3).

Below the workbench panel, you'll find:

Step 3: Map Preview & Legend


3. The Workbench: Creating Color Ramps

A. Sequential & Diverging (The Digital Munsell Sheet)

For data that flows from low-to-high (Sequential) or diverges from a neutral center (Diverging).

B. Graduated (Mathematical Interpolation)

For creating smooth, multi-class progressions with independent Start and End anchor colors.

C. Qualitative (Categorical Palettes)

For distinct groups (e.g., Land Use, Political Parties).

L-LockLightness Values (5-class example)Effect
OFFL*=45, 72, 58, 80, 51Varied weight, more visual diversity
ONL*=62.5, 62.5, 62.5, 62.5, 62.5Equal visual weight, differ only in hue/chroma

Tip: Use L-Lock ON when you want categories that carry equal visual importance on the map (e.g., land use classes). Use L-Lock OFF when you want more variety or intentional visual hierarchy.

How the Harmony Algorithm Works

The marker on the Color Wheel controls three values that feed into the palette generator:

1. Hue (angle on the wheel) — The Anchor Color The marker's hue becomes the first color in the palette. The algorithm then distributes the remaining colors equidistantly around the color wheel from that anchor:

h[i] = (key_hue + i × 360° / count) % 360°

For example, picking hue 200° (blue) with 5 classes yields a palette starting at 200°, then 272°, 344°, 56°, 128°. Move the marker to hue 30° (orange) and the palette shifts to 30°, 102°, 174°, 246°, 318°. The first swatch always matches your marker.

2. Chroma (distance from center) — Saturation Influence The marker's chroma (distance from center) scales the palette's saturation range:

Marker PositionChroma ScaleResult
Center (chroma ≈ 0)0.3×Very muted, pastel-like
Mid-range (chroma ≈ 75)~1.2×Balanced saturation
Edge (chroma ≈ 150)2.0×Maximum saturation for the style

This scaling is applied on top of the Material Aesthetic constraints (e.g., Watercolor has chroma 10–30, Oil Paint has 60–90).

3. Lightness (the slider) — Brightness Shift The Lightness slider shifts the palette's lightness center toward your chosen value, blending with the style's natural range.

Nudging Colors in a Direction

Want More...Do This
Red-ish paletteDrag marker near 0° (top of wheel)
Blue-ish paletteDrag marker near 240° (bottom-left)
Green-ish paletteDrag marker near 120° (right side)
More saturatedDrag marker toward the edge (high chroma)
More muted/earthyDrag marker toward the center (low chroma)
Lighter tonesMove the Lightness slider up
Deeper tonesMove the Lightness slider down
Different variationClick REGENERATE HARMONY

D. Cyclic (Multi-Anchor Loops)

For periodic data like wind direction, compass aspect, or hours of the day.

How Multi-Anchor Cyclic Ramps Work

The ramp is divided into equal segments between consecutive anchors, with shortest-path hue interpolation in each segment:

AnchorsClosed LoopSegmentsEffect
2 (A, B)A → B → A2 halvesTwo-tone oscillation (e.g., warm ↔ cool)
3 (A, B, C)A → B → C → A3 thirdsTriadic zones (e.g., 120° apart for RGB-like distribution)
4 (A, B, C, D)A → B → C → D → A4 quartersQuadrant mapping (e.g., N/E/S/W aspects, wind roses)

Each added anchor creates tighter control over where the ramp passes through the color wheel, giving you more precise routing of the hue path.

E. Bivariate (2D Matrix)

For mapping two variables simultaneously (e.g., Density vs. Area).


4. Legend Builder Views

The Legend Builder automatically adapts its display to the current ramp type:

Discrete Legend (Sequential, Diverging, Graduated Stepped, Qualitative)

A tabular layout with one row per color class. Each row shows:

ColumnContent
SwatchA 32×32 px colored square
HEXThe hexadecimal color code
RGBRed, Green, Blue triplet
OKLCHPerceptual Lightness, Chroma, Hue
CMYKCyan, Magenta, Yellow, Key (for print)
LABCIE Lab* values (for science)
Color NameHuman-readable name

Continuous Legend (Graduated Smooth)

When Graduated is set to Smooth / ON, the legend shows:

Cyclic Legend (Donut Wheel)

For Cyclic ramps, the legend renders an SVG donut chart:

Bivariate Legend (Matrix Grid)

For Bivariate ramps, the legend displays:


5. Accessibility & Diagnostics

IsoChroma is built for "inclusive cartography." Below the Selected Ramp strip, you can toggle View Mode tabs that apply CVD simulations to the ramp preview:

All simulations are computed server-side using the colour-science library for accuracy.


6. Export & Apply

Apply to Map

Click Apply to Map to push your selected colors to the US Counties map preview. The map uses MapLibre GL step/match expressions to classify counties based on synthetic data:

Ramp TypeData FieldDescription
Sequentialseq_valInverted distance from geographic center — concentric rings
Divergingdiv_valLongitude gradient (East vs. West from center)
Qualitativequal_valState FIPS code — each state gets a category
Cycliccyclic_valCompass angle from nearest USA regional center (0–360°)
Graduatedgrad_valDeterministic hash per county (0–100)
Bivariatebivar_x, bivar_yNormalized longitude (X) and latitude (Y)

Export Formats

Use the Export ▾ dropdown to download your palette:

FormatExtensionUse Case
QGIS.qmlImport directly into QGIS as a layer style
SLD.sldOGC Styled Layer Descriptor for GeoServer / MapServer
JSON.jsonMachine-readable palette with LCH metadata
CSS Variables.cssCSS custom properties (:root { --ramp-1: #...; })

Files are named isochroma_{rampType}_{timestamp}.{ext} and downloaded via the browser.


7. Color Gamut & Input Behavior

IsoChroma defaults to Display P3, offering ~25% more colors than standard sRGB (e.g., vivid cyans and greens).

Gamut Selection

The gamut dropdown is located in the Hue Chroma Selector panel header. Switch between:

Changing the gamut recalculates the gamut envelope (the wheel boundary), the Chroma-Lightness grid, and all resolved anchor colors.

The "HEX Jump"

If you manually enter a HEX code (which is sRGB by definition) while in P3 mode, you may see the color "jump" slightly. This is expected behavior: the system snaps the sRGB value to its precise mathematical location in the wider P3 space. The gold border on the HEX input field indicates that the displayed hex is an sRGB-clamped approximation of a wider-gamut color.

Manual Input Resolution

You can type values directly into the HEX, RGB, or OKLCH fields in Anchor Details and press Enter. The backend resolves the input to all other formats and updates the Color Wheel marker position accordingly. This is useful for matching exact brand colors or scientific reference values.

Recommendation: Use the visual Color Wheel or Floating Marker for the smoothest, high-fidelity design experience. Use HEX/RGB/OKLCH input only when you need to match a specific value.


8. Pro Tips for Power Users

  1. Gamut Awareness: IsoChroma defaults to Display P3 for modern wide-gamut displays. If your target audience uses standard office monitors, switch to sRGB via the dropdown in the Hue Chroma Selector to ensure colors aren't clipped.
  2. Right-Click to Remove: In the Chroma-Lightness grid (Sequential / Diverging modes), right-click any selected swatch to remove it from the ramp.
  3. Cartographic Lightness: When building sequential ramps, aim for a Lightness spread of at least 30 points to ensure sufficient contrast on a map. Use the Lightness Slider's cartographic tick marks as guides.
  4. The Name Game: Every color has a human-readable name (e.g., "Deep Cerulean"). These appear in both Anchor Details and the Legend Builder. Use them in your project documentation for better team communication.
  5. Export Early, Export Often: Use JSON export to capture not just hex values but also the LCH metadata of each color, preserving the perceptual intent of your palette.
  6. Graduated Endpoints: The Graduated ramp has independent Start and End anchors — each with its own Lightness, Chroma, and Hue. This allows multi-hue ramps (e.g., yellow → blue) rather than single-hue progressions.
  7. Imhof Mist for Terrain: When creating hypsometric tints, enable Imhof Mist and set the Lightness Slider to ~56% (Thematic). The lower 40% of your ramp will automatically desaturate and lighten, mimicking atmospheric haze on lowlands.
  8. Bivariate Tip: Start with a 3×3 Bilinear matrix. Place Anchor A at a warm hue (e.g., orange 30°) and Anchor B at a cool hue (e.g., blue 240°). The system will compute a pleasing 9-color grid with a neutral center.

9. Hands-On Tutorial: The "Taxi & Thunder" Diverging Ramp

Let's walk through a real-world example to see how IsoChroma handles color physics. We will create a diverging ramp using a bright yellow and a cool blue.

Step 1: Set the Stage (Lightness)

  1. Go to the Lightness slider in the center panel.
  2. Slide it up to 78%.
  1. Color Information:

Step 2: Select Diverging Mode

  1. In the Right Sidebar, click Diverging.
  2. The workbench splits into three columns: Anchor A, N (Neutral), and Anchor B.
  3. The Color Wheel now shows two markers (A and B).

Step 3: Place Your Anchors

  1. Anchor A: Drag the "A" marker to the right side of the wheel (around 3 o'clock).
  1. Anchor B: Drag the "B" marker to the bottom-left (around 7 o'clock).

Step 4: Read the "Wings"

Look at the Workbench grid. You don't just see a simple gradient; you see the shape of the color space.

Step 5: Build the Ramp

  1. Click cells in the Anchor A grid to select high-chroma yellows.
  2. Click a gray in the N column for your neutral midpoint.
  3. Click cells in the Anchor B grid to select blues.
  4. Watch the Selected Ramp strip below fill up. Colors auto-sort: A colors (ascending lightness), Neutral, then B colors (descending lightness).

Step 6: Test Accessibility

  1. Click the Deutan tab in the View Mode strip.
  2. Check that your yellow and blue wings still look distinct under red-green CVD simulation.

Step 7: Apply & Export

  1. Click Apply to Map — your diverging ramp is painted across the US Counties, showing an East-West longitude gradient.
  2. Click Export ▾ → QGIS (.qml) to download a style file you can import directly into your GIS project.

Step 8: The Floating Markers

You will see two small circular markers floating above the grid (one Yellow, one Blue).

The Takeaway: You created a palette where a bright Yellow and distinct Blue meet perfectly in the middle at a neutral Gray, verified it's accessible under CVD, and exported it for your GIS project — all backed by perceptual color science.


10. Architecture at a Glance

LayerTechnologyRole
FrontendReact 19 + TypeScript + ViteUI with Color Wheel, Grid, Legend, Map
State ManagementReact Context (3-context split: State, Dispatch, API)Centralized color state with debounced API calls
BackendDjango 6 + Python colour-scienceColor engine, gamut computation, CVD simulation
MapMapLibre GL JSVector tile map rendering with dynamic expressions
BasemapCartoDB PositronLight "Gray Lite" basemap for thematic mapping
DataUS Counties GeoJSON with synthetic attributes6 data fields for ramp type demonstration
ExportClient-side generationQML, SLD, JSON, CSS files via Blob download

Generated by IsoChroma — The Cartographic Color Workbench.