Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Oklab and Oklch #15

Open
DrewFenwick opened this issue Nov 28, 2024 · 1 comment
Open

Adding support for Oklab and Oklch #15

DrewFenwick opened this issue Nov 28, 2024 · 1 comment

Comments

@DrewFenwick
Copy link

DrewFenwick commented Nov 28, 2024

In 2021, the Oklab and Oklch color spaces were included in the CSS Color Level 4 and Level 4 drafts and support has since been implemented in all major web browsers.

Oklab was introduced by Björn Ottosson in December 2020 by this blog post, and it is broadly similar to CIE Lab but purported to have improved perceptual qualities, in particular CIE Lab is worse at predicting hues, particularly blue hues.

Oklch is to Oklab what CIE LHC is to CIE Lab: the polar version of Oklab. It isn't set out in Björn's blog post but is documented (along with Oklab) in the CSS Color Level 4 draft

I figure support by major web browsers gives these color spaces enough weight to warrant support.

@lehins
Copy link
Owner

lehins commented Dec 3, 2024

@DrewFenwick Oklab looks very interesting and something we should definitely implement. I might be able to get to it a bit later this month towards the holidays. You are welcome to submit a PR if you wanna give it a try yourself before then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants