HELMLAB: Data-Driven Color Space for UI Design
- HELMLAB is a data-driven color space defined by a 72-parameter pipeline that transforms CIE XYZ to a perceptually organized Lab-like representation optimized for UI design.
- It employs learned linear and non-linear transformations, including Fourier hue corrections and Helmholtz–Kohlrausch adjustments, to achieve enhanced contrast prediction and neutral gray enforcement.
- The design supports practical workflows by enabling accurate palette generation, contrast adjustments, and gamut mapping tailored for screen-based applications.
HELMLAB is a data-driven analytical color space for UI design systems, formulated as a 72-parameter pipeline from CIE XYZ to a perceptually organized Lab-like representation and paired with a learned perceptual distance function. It is designed for screen-based work in sRGB and Display-P3 under D65 / average surround assumptions, with explicit attention to three practical requirements: accurate color-difference prediction, a clean achromatic axis for grayscale ramps, and usable hue geometry for programmatic palette generation and design-token workflows. On the COMBVD dataset of 3,813 color pairs, the reported STRESS is 23.22, compared with 29.18 for CIEDE2000, corresponding to a 20.4% reduction; the transform is also reported to be invertible with round-trip errors below , and its neutral correction drives achromatic outputs to with chroma below (Yildiz, 26 Feb 2026).
1. Problem setting and design objectives
HELMLAB was introduced to address a conjunction of requirements that the paper treats as insufficiently satisfied by standard spaces when used in UI design systems: perceptual distance prediction for contrast and spacing, a neutral axis that does not leak chroma into grayscale ramps, and hue geometry that behaves sensibly under interpolation and token generation (Yildiz, 26 Feb 2026).
The paper positions HELMLAB against CIE Lab, CIEDE2000, Oklab, CAM16-UCS, IPT, and Jzazbz. CIEDE2000 is treated as a standard for color-difference evaluation, but not as a learned end-to-end space-transform-plus-metric system. Oklab is described as simple and useful for CSS, but optimized for hue uniformity rather than psychophysical distance prediction. CAM16-UCS is presented as having stronger appearance-model grounding, but as being computationally heavier and, in the author’s measurements, as leaking chroma on neutral colors. IPT and Jzazbz are described as having other strengths without being targeted at UI design workflows. The paper argues that no prior space jointly optimizes both the space transform and the distance metric end-to-end against psychophysical data; HELMLAB is presented as a direct response to that gap (Yildiz, 26 Feb 2026).
Its intended scope is explicitly screen-based rather than general-purpose. A plausible implication is that HELMLAB should be read not as a universal replacement for all color-difference formalisms, but as an application-specific construction aimed at web, mobile, and tokenized design-system pipelines.
2. Analytical structure of the forward transform
The forward transform maps CIE XYZ to through a sequence of learned linear transforms and nonlinear corrections. The parameterization is explicitly decomposed into nine blocks summing to 72 parameters (Yildiz, 26 Feb 2026).
| Component | Role | Parameters |
|---|---|---|
| First matrix | XYZ-to-cone-like transform | 9 |
| Power exponents | Per-channel signed compression | 3 |
| Second matrix | Opponent / Lab projection | 9 |
| Hue correction | 4-harmonic Fourier correction | 8 |
| Helmholtz–Kohlrausch terms | Chroma-dependent lightness adjustment | 6 |
| Lightness refinement | Cubic and dark-region corrections | 8 |
| Chroma processing | Hue-, chroma-, and -dependent corrections | 18 |
| Hue–lightness terms | Final hue-linked lightness modulation | 4 |
| Metric parameters | Distance function | 7 |
The first stage uses a learned matrix:
$\mathbf{c} = \mathbf{M}_1 \begin{bmatrix} X\Y\Z \end{bmatrix}.$
This is followed by per-channel signed power compression,
with appendix values reported as approximately , , and 0. A second learned matrix then yields raw Lab-like coordinates. The paper characterizes these exponents as being near 0.4, i.e. between cube-root and square-root compression (Yildiz, 26 Feb 2026).
Hue is then corrected with a 4-harmonic Fourier term,
1
which rotates the chromatic vector while preserving chroma. HELMLAB also embeds a Helmholtz–Kohlrausch lightness correction,
2
with fitted values 3 and 4. The paper treats this as a major design choice because it makes lightness explicitly depend on chroma rather than assuming separability (Yildiz, 26 Feb 2026).
Further stages refine lightness through a cubic term, hue-dependent correction, and a dark-region exponential adjustment. Chroma then undergoes interleaved hue-dependent scaling, nonlinear chroma power, 5-dependent scaling, and a final hue6lightness interaction. The paper emphasizes that these chroma stages are interleaved rather than merely stacked, so later stages can compensate for distortions introduced earlier (Yildiz, 26 Feb 2026).
Two post-pipeline operations are central to usability. First, a neutral correction computes achromatic error over 256 gray levels spanning 7 and subtracts it via PCHIP interpolants:
8
Second, the chromatic plane is rigidly rotated by
9
The paper states that this improves hue placement of sRGB primaries and secondaries while leaving the distance metric unchanged (Yildiz, 26 Feb 2026).
3. Learned distance metric and rotational invariance
HELMLAB does not use plain Euclidean distance in 0. Instead, it defines a learned perceptual distance in which the lightness and chroma terms are rescaled by pair-dependent factors (Yildiz, 26 Feb 2026):
1
where 2 and 3 are pair averages. The raw distance is
4
followed by the compressive post-transform
5
The learned parameter values are reported approximately as 6, 7, 8, 9, 0, and 1 (Yildiz, 26 Feb 2026).
A distinctive theoretical property is exact invariance of this metric under rigid rotations in the 2-plane. The paper notes that the metric depends only on 3, 4, 5, and 6. Because a rigid rotation preserves both 7 and 8, the metric is unchanged. This is why the final chromatic-plane rotation can improve hue-angle alignment without altering the measured color distance; the reported COMBVD STRESS difference before and after rotation is 0.0000000000 (Yildiz, 26 Feb 2026).
This separation between perceptual metric and chromatic-plane orientation is one of the paper’s main conceptual moves. It suggests that palette geometry can be tuned independently of distance fidelity, provided the tuning is restricted to an isometry.
4. Optimization procedure and empirical evaluation
The full 72-parameter system is optimized jointly with the loss
9
using L-BFGS-B with box constraints, 8 random restarts, and about 5,000 iterations each. The paper reports typical convergence within 3,000–5,000 function evaluations per restart, and a train–validation STRESS gap of 0, which it interprets as some overfitting but not severe (Yildiz, 26 Feb 2026).
The evaluation metric is STRESS,
1
with lower values better. The main benchmark is COMBVD, comprising 3,813 color pairs from six psychophysical experiments (Yildiz, 26 Feb 2026).
On COMBVD, the reported values are: HELMLAB 23.22, CIEDE2000 29.18, CIE76 42.80, CIE94 33.59, CMC 34.04, CAM16-UCS (Euclidean) 33.90, IPT (Euclidean) 41.21, Jzazbz (Euclidean) 41.90, Oklab (Euclidean) 47.46, and sRGB (Euclidean) 67.82. The paper further reports 10,000-iteration paired bootstrap confidence intervals of 2 for HELMLAB and 3 for CIEDE2000, states that the intervals do not overlap, and gives 4 (Yildiz, 26 Feb 2026).
Cross-dataset results are more qualified. On He et al. 2022, which has 82 pairs, HELMLAB scores 29.0 versus 32.6 for CIEDE2000. On MacAdam 1974, with 128 pairs, HELMLAB scores 20.2, while CAM16-UCS is best at 18.7. The paper is explicit that HELMLAB is not universally best across all datasets and is tuned primarily to COMBVD (Yildiz, 26 Feb 2026).
A common misconception would be to treat the COMBVD result as evidence of universal dominance. The paper does not support that conclusion. Its stronger claim is narrower: HELMLAB is competitive across datasets while being optimized mainly for COMBVD and for UI-oriented usability constraints.
5. Invertibility and design-system tooling
HELMLAB is constructed to be invertible stage by stage. The learned matrices invert by matrix inversion; the signed power law inverts as
5
hue and lightness corrections invert by Newton iteration; and the neutral correction inverts by adding back the interpolated achromatic error (Yildiz, 26 Feb 2026).
The reported round-trip accuracy over the full sRGB gamut is
6
and a Jacobian check on a 7 sRGB grid gives a minimum determinant of 0.10. The paper interprets this as local invertibility and orientation preservation over the tested gamut (Yildiz, 26 Feb 2026).
The same work includes practical utilities oriented toward design systems. Out-of-gamut HELMLAB coordinates are mapped back to sRGB or Display-P3 by binary-search chroma reduction along the 8 axis, preserving hue and lightness as much as possible. A utility ensure_contrast(fg, bg, min_ratio) adjusts foreground lightness by binary search on the HELMLAB 9 axis until WCAG 2.x contrast thresholds are met, while preserving hue and chroma. Palette generation is described in terms of lightness ramps, hue rings, and semantic token scales such as Tailwind-style 50–950 ramps, generated by interpolating 0 between roughly 0.97 and 0.10 while preserving hue/chroma structure (Yildiz, 26 Feb 2026).
Dark/light mode adaptation is present architecturally through a surround parameter 1, but the paper states that it is not yet trained on viewing-condition data. The current implementation instead uses heuristic soft 2-inversion, with typical surrogate values such as light mode 3 and dark mode 4. Exporters are provided for CSS custom properties, oklch() and color(display-p3 ...), Android XML, iOS Swift, Tailwind config, and raw JSON (Yildiz, 26 Feb 2026).
6. Limitations, trade-offs, and interpretation
The paper is explicit about HELMLAB’s limitations. First, its training data are biased toward COMBVD and the 2° standard observer, so generalization to large-field settings is uncertain. Second, the model’s 72 parameters make it considerably more complex than simpler spaces such as Oklab. Third, hue alignment is improved but not perfect: the reported RMS hue error is 16.1°, with some regions, especially cyan and yellow, reaching about 20°. Fourth, surround dependence is architectural rather than empirically trained; current dark/light mode handling is heuristic. Fifth, HELMLAB underperforms CIEDE2000 on some COMBVD subsets, including BFD-P(C), Leeds, and RIT-DuPont. Sixth, it is not presented as a general-purpose space for print, photography, or spectral applications (Yildiz, 26 Feb 2026).
The most significant trade-off identified in the paper is between measurement optimality and generation usability. An unconstrained, measurement-optimal model deformed the achromatic axis so that grays were no longer neutral in the output space. The neutral correction was added to resolve that tension by post-correcting the achromatic axis while preserving the optimized distance behavior. This suggests a broader methodological point: for UI systems, perceptual accuracy alone is insufficient if the resulting space behaves poorly for grayscale interpolation, ramp construction, and token generation (Yildiz, 26 Feb 2026).
Within that framing, HELMLAB is best understood as a learned, analytical, invertible color space plus perceptual metric for screen-based design systems. Its reported strengths are the COMBVD STRESS of 23.22, exact neutral suppression to below 5 chroma, round-trip error below 6, and integrated support for gamut mapping, contrast enforcement, and token export. Its principal trade-offs are complexity, residual hue error, and specialization to UI-oriented use rather than universal color science (Yildiz, 26 Feb 2026).