Skip to content

Potential bug in okLCH/okHSV conversion? #449

Answered by facelessuser
intervexual asked this question in Q&A
Discussion options

You must be logged in to vote

@intervexual Are you comparing apples to apples? I think not. Let me explain.

You noted that you can't get results that match Bottosson's color picker when using OkLCh to Okhsv or vice versa. The problem is that you need to pay closer attention, notice that the colorpicker is not showing OkLCh, but OkLrCh. The article explains that to create Okhsv and Okhsl that a toe function was applied to the lightness in a variation of OkLCh.

Note in this example that we can convert fine from sRGB HEX to Okhsv. Note that when we convert from sRGB HEX to OkLCh that the lightness doesn't match. If you read the article on Okhsl and Okhsv, you'll notice that he talks about a new lightness: https://bottoss…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@facelessuser
Comment options

@intervexual
Comment options

@facelessuser
Comment options

Answer selected by facelessuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
S: triage Issue needs triage.
2 participants
Converted from issue

This discussion was converted from issue #448 on January 19, 2025 00:16.