HPHobbyPaintIndex
Color Science Specification

CIELAB ΔE2000 Matching Methodology

Why naive RGB distance fails on miniature paints, and how HobbyPaintIndex pre-computes perceptually uniform cross-brand equivalents across 370 Citadel and Vallejo colors.

1. From sRGB Hex to CIELAB (D65 / 2° Observer)

Standard sRGB hex values are gamma-encoded for displays rather than linear light or human vision. Measuring Euclidean distance directly in RGB space causes severe perceptual errors—especially in deep greens, saturated reds, and dark blues.

Conversion Pipeline:
  1. Linearize sRGB: Remove the piecewise sRGB transfer curve (γ ≈ 2.4) to obtain linear light intensities.
  2. CIE XYZ Transformation: Project linear RGB onto CIE 1931 XYZ coordinates calibrated to the D65 daylight illuminant (Xn = 0.95047, Yn = 1.00000, Zn = 1.08883).
  3. CIELAB (L*a*b*): Map XYZ into perceptual lightness (L*), red–green opponent axis (a*), and yellow–blue opponent axis (b*).

2. Why CIEDE2000 (ΔE2000)

Even in CIELAB space, human eyes are far more sensitive to subtle hue shifts in neutral grays and saturated blues than in vivid greens. The CIEDE2000 formula (Sharma, Wu, & Dalal, 2005) introduces perceptual weighting functions for lightness (SL), chroma (SC), hue (SH), and an interactive rotation term (RT) in the blue region, with parametric factors kL = kC = kH = 1.

3. Accuracy Tier Thresholds

ΔE2000 < 2.0 — Exact Match

Virtually indistinguishable to the naked eye on a primed miniature under tabletop lighting. Safe for direct mid-project touch-ups.

ΔE2000 2.0 – 5.0 — Close Match

Minor tonal or saturation nuance visible side-by-side, but reads identically across an army or unit scheme.

ΔE2000 5.0 – 10.0 — Approximate

Visibly adjacent hue/value family; suitable as a base substitute or with a subtle glaze/wash adjustment.

ΔE2000 > 10.0 — Loose Match

Noticeably different value or chroma. Useful only when no closer proprietary pigment exists without mixing.

4. Finish Profiles & Painting Triads

Color coordinates alone do not capture pigment behavior. A translucent Wash/Contrast paint pools in recesses over a light primer, whereas a Matte Base paint provides opaque coverage and a Metallic paint reflects specular mica/aluminum flakes. HobbyPaintIndex tracks finish metadata explicitly so you can toggle Match Finish Only on any paint page or photo eyedropper query.

For each paint, our pipeline also computes an intra-brand Painting Triad (Shade/Base → Midtone → Highlight) by pairing hue-aligned neighbors stepped roughly 10–24 L* lightness units darker and lighter while preserving chroma and metallic compatibility.