{ lightness : Basics.Float
, chroma : Basics.Float
, hue : Basics.Float
, alpha : Basics.Float
}
A color in the Oklch space.
lightness
ranges from 0.0 to 1.0 (inclusive),chroma
ranges from 0.0 to approximatively 0.37 (inclusive),hue
ranges from 0.0 to 1.0 (inclusive),alpha
ranges from 0.0 to 1.0 (inclusive).oklch : Basics.Float -> Basics.Float -> Basics.Float -> Oklch
Builds a color from its lightness, chroma and hue components.
lightness
ranges from 0.0 to 1.0 (inclusive),chroma
ranges from 0.0 to approximatively 0.37 (inclusive),hue
ranges from 0.0 to 1.0 (inclusive),alpha
ranges from 0.0 to 1.0.oklcha : Basics.Float -> Basics.Float -> Basics.Float -> Basics.Float -> Oklch
Builds a color from its lightness, chroma, hue and alpha components.
lightness
ranges from 0.0 to 1.0 (inclusive),chroma
ranges from 0.0 to approximatively 0.37 (inclusive),hue
ranges from 0.0 to 1.0 (inclusive),alpha
ranges from 0.0 to 1.0.fromColor : Color -> Oklch
Convert a color from Color
(sRGB) to Oklch.
toColor : Oklch -> Color
Convert a color from Oklch to Color
(sRGB).
fromOklab : Color.Oklab.Oklab -> Oklch
Convert from Oklab to Oklch.
toOklab : Oklch -> Color.Oklab.Oklab
Convert from Oklch to Oklab.