How we measured
The Palette DNA Ramp claims its ramps come close to what a palette's own designers would make. This page shows the test behind that claim: hide a real ramp, rebuild it from one of its colors and the palette's other ramps, and compare every step with what the designers shipped.
Method
- Error is the distance between two colors in Oklab, multiplied by 100 (ΔE OK ×100). About 2 is one just-noticeable difference: the smallest difference most people can see. "Within one JND" means an error below 2, rounded to two decimals.
- The test. For each palette, every ramp the engine builds its shape from is hidden in turn. Its most colorful step becomes the seed. The engine rebuilds the ramp from that seed and the palette's other ramps, the way the ramp page does by default, and every step except the seed is compared with the shipped ramp.
- The baseline copies the nearest remaining ramp, turned to the seed's hue and scaled to its colorfulness. It is told which step the seed belongs on, and the engine is not, so the comparison favors the baseline.
- Seed moved means the engine put the seed on a different step from the one its designers used. Pinned runs the same test with the seed fixed to the designers' step, as the ramp page's step menu does.
- The headline set leaves out Material 3, which is generated by a formula, and Kendo Meridian, whose colors are chart series rather than ramps. Their results are still listed below. Medians use the middle value of all scored steps.
Results: headline set
By palette
Grey rows are outside the headline set.
Ramp by ramp
The outlined swatch is where the seed color sits in each row. Numbers under the swatches are each step's error; red marks 2 or more.
Reproduce
The test is a single script with no dependencies. From a copy of the repository, run node scripts/palette-dna-evidence.cjs. The script rebuilds this page; with --check it fails if any number published on the tool pages differs from a fresh run.
Why this engine: it was compared with an alternative generator on the same data before release. See the comparison.