Building the scale
Start with your target hue and build a 9-11 step scale from near-white to near-black. The key is perceptual uniformity: each step should appear equally distant from its neighbors in terms of lightness. OKLCH-based scales achieve this better than HSL-based ones because OKLCH lightness correlates more closely to human perception. In practice, build your scale, then test each step-pair's contrast ratio — it should step in consistent increments. Steps with contrast below 1.3:1 against their neighbor are too close; steps with contrast above 3:1 are too far apart and will create a visible gap in the scale.
