OKLCH to HEX Converter
Convert OKLCH color codes to HEX format instantly.
Working in OKLCH and need a hex fallback for older browsers? This converter produces the nearest sRGB hex code from your OKLCH values, handling gamut mapping automatically.
OKLCH is a modern perceptually uniform color space adopted in CSS Color Level 4. It offers consistent lightness and chroma across hues, making it ideal for generating accessible, visually balanced palettes.
HEX codes are six-digit hexadecimal strings prefixed with # that represent colors in web development. They encode red, green, and blue channels as two hex digits each, producing over 16 million possible colors.
Enter lightness as a percentage, chroma as a decimal, and hue in degrees — or paste the full oklch() function from your CSS.