Function: rgbToOklab()
rgbToOklab(
rgb):Oklab
Converts RGB values to Oklab color space.
Parameters
| Parameter | Type | Description | 
|---|---|---|
rgb | RGB | An object with r, g, and b properties. | 
Returns
An object with L, a, and b properties.
Throws
If the input is not a valid RGB object or if RGB values are out of range.
Defined in
conversions/components/oklab.ts:37