The lightness component (0-1)
The green-red component (negative values are green, positive values are red)
The blue-yellow component (negative values are blue, positive values are yellow)
Optional
alpha: numberThe alpha (opacity) component (0-1), optional
A new OKLab color object
Creates a new OKLab color object with the specified components.
This is the primary factory function for creating OKLab colors in the library. The created object includes methods for conversion to other color spaces and string representations.