🎨 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 |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准