Versions in this module Expand all Collapse all v1 v1.0.0 Dec 6, 2026 Changes in this version + func ChannelToLinear(c float64) float64 + func RelativeLuminance(c SRGB) float64 + func WCAGContrastRatio(a, b SRGB) float64 + type OKLCH struct + C float64 + H float64 + L float64 + func SRGBToOKLCH(c SRGB) OKLCH + type OKLab struct + A float64 + B float64 + L float64 + func SRGBToOKLab(c SRGB) OKLab + type SRGB struct + B float64 + G float64 + R float64 + func HexToSRGB(hex string) (SRGB, error)