🎨 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)中使用
- 計算結果僅供參考,請以實際應用場景為準