March 8, 2026
Hue knew? Color wars ignite
From RGB to L*a*b* color space (2024)
Color nerds clash: the 'RGB' correction, OKLab hype, and pie‑chart drama
TLDR: A tutorial shows how to convert from sRGB to Lab so colors look consistent and differences can be measured. Comments erupted over a nitpick (sRGB vs RGB), a push for the newer OKLab option, and surprisingly passionate tips about gradients and pie charts—because getting color right actually matters across screens.
A calm explainer on moving photos from sRGB to Lab—so colors look consistent and measurable with a "how different is it?" score called Delta E—ignited a full‑blown comment‑section color war. First on the scene: the Color Police. One eagle‑eyed reader pounced with a correction: it’s sRGB (a standard flavor of RGB), not generic RGB, and that difference matters for device profiles and accuracy. Cue the pedant parade.
Then the vibe flipped to Team OKLab. Multiple commenters swooped in with, “forget Lab, try OKLab!”—a newer, simpler‑to‑code color system that avoids some Lab weirdness. It wasn’t just hype: devs claimed OKLab is easier for gradients, while others swore by Lab’s smooth blends for gorgeous color ramps. The gradient gang met the standards sticklers, and sparks flew.
Meanwhile, a practical hero crashed the party with a surprise use case: pie charts. Yes, pie charts. The thread briefly turned into PowerPoint couture, with code links and apologies for XSLT keeping the drama deliciously nerdy.
Bottom line: the article laid out the math and purpose—convert sRGB to Lab to measure color differences—while the crowd split into factions: Fix the terminology! vs OKLab all the things! with a comic relief of “make your business charts pretty.”
Key Points
- •RGB is not perceptually uniform, so equal RGB changes do not correspond to equal perceived color changes, causing reproduction inconsistencies.
- •The Lab (CIELAB) color space separates lightness (L*) and chroma (a*, b*) and is designed to be perceptually uniform.
- •Converting to Lab enables objective color difference measurements using Delta E (ΔE).
- •The sRGB-to-Lab conversion involves normalizing sRGB, applying gamma correction to get linear RGB, converting to XYZ with a D65-based matrix, then converting to Lab.
- •The conversion uses D65 white point values and the 2° standard observer, with a piecewise function f(t) in the XYZ-to-Lab step.