Conversion method
sRGB color conversion method
HEX, RGB, and HSL values are normalized to sRGB channels, then converted with standard hue, saturation, lightness, and luminance formulasThe contrast helper compares black and white text only. Full accessibility checks still depend on font size, weight, state, and surrounding UI.