OKLCH in CSS: why we moved from RGB and HSL ↦
In CSS, we’ve been encoding colors with
rgb() or hex (mostly for historical reasons). However, the new CSS Color 4 specification adds many better ways of declaring colors in CSS. Of these,
oklch() is the most interesting one—this article explains why.
Sign in or Join to comment or subscribe