Convert OKLCH color values into a hexadecimal color code.
Input formats
Provide colors using oklch(L C H) syntax: lightness as a percentage, chroma as a plain number, and hue as a degree value from 0 to 360. Each line is parsed independently in batch mode.
Hex output
The output is formatted as a 6-digit hex code in uppercase (#RRGGBB). oklch(68.04% 0.21 33.69) becomes #FF5733.
Chroma and gamut limits
Not every lightness, chroma, and hue combination fits inside sRGB. When chroma is set too high for a given lightness and hue, each RGB channel clamps to 0-255, which shifts the output slightly from the requested OKLCH value.