# OKLCH Color Picker & Converter

> OKLCH Color Picker & Converter helps designers and web developers pick and convert colors in OKLCH and LCH color space, enhance a11y in their projects, and prepare for a future with a vibrant P3 color space.

- URL: https://evilmartians.com/opensource/oklch-color-picker
- GitHub: https://github.com/evilmartians/oklch-picker
- Website: https://oklch.com
- Authors: Andrey Sitnik, Roman Shamin

---

OKLCH Color Picker & Converter is an Evil Martians project to promote Oklab colors for designers and web developers.

OKLCH, by Björn Ottosson, is a new way of encoding colors (like hex, RGBA, or HSL) with native browser support. OKLCH was created to solve a critical problem in `hsl()` and Sass's `darken()`: the human eye sees different colors for different hues, but HSL and RGB deform the complex shape of color space to a cube (or cylinder, in HSL).

<a href="https://www.producthunt.com/posts/oklch-color-picker-converter?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-oklch&#0045;color&#0045;picker&#0045;converter" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=386673&theme=light&period=daily" alt="OKLCH&#0032;Color&#0032;Picker&#0032;&#0038;&#0032;Converter - The&#0032;new&#0032;way&#0032;of&#0032;working&#0032;with&#0032;color | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

This is very cool: a nice little OKLCH Color Picker & Converter that also shows you which colors are not available for your device and the fallback color your will obtain. — [Twitter](https://twitter.com/WalterStephanie/status/1622596205405511682).

During color transformation, hue changes could lead to brightness changes and different visual results. OKLCH provides a "true" color space where colors are shown as they really are. Therefore, you'll get predictable results, e.g., a predictable contrast after a color transformation, which is critical for implementing proper [a11y](https://evilmartians.com/chronicles/accessible-design-from-the-get-go). Further, due to HSL's issue, supporting a design system with HSL could be hard, and could lead to a11y issues. 

## Designed for modern screens
Modern, cutting-edge monitors promise to render a new world of colors, including P3. OKLCH makes sure we aren't limited to just sRGB colors and the OKLCH Color Picker can encode P3, Rec. 2020, and beyond.

*Image: OKLCH Color Picker & Converter*

## Good for CSS
We think that OKLCH is the best color system for CSS. You could wait for CSS Colors 5, (which will bring native color transformations to CSS) or for all browsers to offer CSS Colors 4 support, but with OKLCH Color Picker and a [PostCSS polyfill](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-oklab-function) you can use OKLCH right now.
