Function Signature
js
oklchToHex(L: number, C: number, h: number): stringParameters
L(number): OKLCH lightness.C(number): OKLCH chroma.h(number): OKLCH hue angle in degrees.
Return Value
A lowercase HEX string in the format #rrggbb.
js
const lch = hexToOklch("#ff6600");
oklchToHex(lch.L, lch.C, lch.h);
// "#ff6600"Usage Notes
- Hue values are normalized before conversion.
- Out-of-gamut OKLCH values are clipped to valid sRGB.