How do you convert RGB to OKLCH? #252
Replies: 1 comment 1 reply
-
ah-ha! culori.formatHex(
culori.convertLabToLch(
culori.convertRgbToOklab(
culori.parseHex('#0074ff')
),
'oklch'
)
) This does it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Testing some symmetric conversion to make sure things are what I expect
I'm just testing things out on the docs site here: https://culorijs.org/api/#formatHex
in the browser console.
in that last one, if I omit the
oklch
argument, which converts to regularlch
, formatHex returns the original hex, as expectedBeta Was this translation helpful? Give feedback.
All reactions