# OKLCH in CSS: Why We Moved from RGB and HSL

Canonical URL: https://colorcurio.us/library/oklch-in-css
Source type: Library entry
Resource URL: https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl
Added: 2024-01-15

## Summary

The case for OKLCH in CSS: lightness that holds across hues, and the syntax to replace RGB and HSL.

The article that moved many front-end teams to OKLCH. It pairs with the OKLCH picker from the same team.

- Resource: [OKLCH in CSS: Why We Moved from RGB and HSL](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl)
- By: Andrey Sitnik
- Published: 2022
- Kind: writing (article)
- Level: intermediate
- Tags: color-spaces, design-systems, oklab, designer, developer, tutorial, css, web

## In collections

- [The OKLCh Ecosystem](https://colorcurio.us/library/collections/oklch-ecosystem)

## Mentioned in

- [Anatomy of a colormap](https://colorcurio.us/notes/anatomy-of-a-colormap)

[Back to the library](https://colorcurio.us/library)
