Keith Cirkel examined color precision in CSS minification and determined that three decimal places is sufficient for oklch and oklab color values, as humans cannot perceive differences below that threshold using delta-E color distance metrics. Cirkel argued that minifiers should automatically reduce color precision to save bytes, with even more aggressive rounding possible for other color formats like rgb() and hsl().
1 comment
Keith Cirkel examined color precision in CSS minification and determined that three decimal places is sufficient for oklch and oklab color values, as humans cannot perceive differences below that threshold using delta-E color distance metrics. Cirkel argued that minifiers should automatically reduce color precision to save bytes, with even more aggressive rounding possible for other color formats like rgb() and hsl().