Skip to content

rgb2oklch

rgb2oklch(color): number[]

Defined in: oklch.ts:78

Convert rgb to oklch

RGBA

the color

number[]

  • [L, C, H] where L is [0..1], C >= 0 and H is in degrees [0..360]