E-Ink News Daily

Back to list

Too Much Color

CSS expert Keith Cirkel argues that color values in CSS are often unnecessarily precise, recommending that oklch and oklab colors need only 3 decimal places while lab/lch can use just 1. This optimization can save bytes without visual impact, especially important for CSS minifiers. The article provides technical justification for these precision limits based on human perception and mathematical requirements.

Background

CSS color formats like oklch, oklab, and traditional lab/lch are increasingly used in web development for better color representation. As CSS minifiers aim to reduce file sizes, optimizing color precision has become a relevant technical consideration.

Source
Lobsters
Published
Mar 10, 2026 at 08:13 PM
Score
5.0 / 10