Color ramps and the shade ladder

Docs

A ramp is one hue at nineteen lightnesses, from 50 (near white) to 950 (near black). The six ramps of a project (neutral, brand, accent, destructive, success, warning) are its whole palette; every semantic token points at a shade of one of them, or at white or black.

The ladder

The eleven familiar steps, 50, 100, 200 … 900, 950, are joined by a half step between each pair from 150 to 850:

50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950

The half steps exist because a contrast threshold is continuous and the ladder is not. On white, one grey step can sit at 2.5:1 and the next at 4.6:1, so "the lightest shade that still clears 3:1" has nowhere to land. With half steps a repair lands on the rung it asked for instead of a darker one.

The seeded palettes keep their eleven stock shades exactly as Tailwind's and fill the half steps between them as the midpoint in OKLCH (lightness and chroma halfway, hue along the shorter arc). A project created before the half steps existed keeps its eleven-shade ramps.

Building a ramp from hue and chroma

The AI and an agent never write nineteen shades. A ramp crosses the wire as { "hue", "chroma" }: the hue in degrees and the peak chroma, which is the chroma at 600. The app places the shades on a fixed lightness ladder and a fixed chroma profile:

  • Lightness runs from near white at 50 to near black at 950. A grey ramp (chroma under 0.08) follows the neutral ladder; as chroma rises the ladder blends toward the one that saturated colours use, so a vivid 600 sits where a designer expects it.
  • Chroma peaks at 600 and falls toward both ends, so 50 is a tint and 950 a deep shade rather than a neon one.
  • A near-grey ramp keeps a little of its tint in the light shades, so a warm neutral reads warm at 100, not only at 600.

Going the other way, a hand-edited or seeded ramp is described back to the AI by the hue of its 600 and its peak chroma, so an edit you make in the workbench is not lost on the wire.

Every generated shade is written as oklch(L C H), so the exports carry the same colour the preview paints.

Where ramps meet the checks

The contrast dialog's Fix moves a foreground along its ramp to the nearest shade that clears the threshold against every background it sits on; the shade rows under a wizard card offer five neighbouring shades per theme. Both walk this ladder, which is why a half step can be the answer. See Contrast pairs and Recipe shape.