🎨 Color Code Converter (HEX/RGB/HSL/CMYK)

Convert color values between HEX, RGB, HSL and CMYK formats with live preview.

Separate RGB, HSL or CMYK channels with commas or spaces; optional wrappers are rgb(...), hsl(...) and cmyk(...). HSL saturation and lightness and CMYK channels may use %. Scientific notation is not supported.

Formula & Standard References

Item Formula / Note Source / Standard
Colour model hex and RGB express the same additive model and convert exactly IEC 61966-2-1:1999, sRGB
Non linear conversion hue saturation lightness derive non linearly and reverse conversion is many to one W3C CSS Color Level 4
Print model CMYK is subtractive with a different gamut requiring an ICC profile ISO 15076-1:2010, ICC profile specification
⚠️ 使用說明與注意事項