HSL to HEX Code Converter
Convert Hue degrees, Saturation, and Lightness coordinates into standard 6-digit hexadecimal web color codes.
Technical Specification & Mathematical Principles
Chroma is calculated as C = (1 - |2L - 1|) * S, followed by intermediate offset X = C * (1 - |(H / 60) mod 2 - 1|).
The resulting floating-point primary channels (R', G', B') are shifted by m = L - C / 2, multiplied by 255, and converted to base-16 hex bytes.
Frequently Asked Questions
Related Design & Color Instruments
HEX to RGB Converter
Convert hexadecimal web color strings (#RRGGBB) to decimal integer rgb(r, g, b) tuples instantly.
RGB to HEX Converter
Convert decimal RGB integer components (0-255) to uppercase 6-digit padded hexadecimal strings.
HEX to HSL Converter
Convert hex color codes into cylindrical coordinates: Hue degrees (0-360), Saturation %, and Lightness %.
Pantone to HEX Matcher
Match any hex or RGB color to the closest standard Pantone PMS color using CIEDE2000 Delta E in Lab space.