Versions in this module Expand all Collapse all v1 v1.0.2 Oct 27, 2026 v1.0.1 Oct 24, 2026 v1.0.0 Oct 23, 2026 Changes in this version + func ContrastRatio(a, b RGB) float64 + func Linearize(val uint8) float64 + func RelativeLuminance(c RGB) float64 + type OKLCH struct + C float64 + H float64 + L float64 + type RGB struct + B uint8 + G uint8 + R uint8 + func ParseHex(hexStr string) (RGB, error) + func (c RGB) ToHex() string + type WCAGConformance struct + AAALarge bool + AAANormal bool + AALarge bool + AANormal bool + Ratio float64 + func CheckWCAG(ratio float64) WCAGConformance