颜色格式转换

HEX、RGB、HSL、HSV、CMYK 互转

🔒 100% client-side — your data never leaves this page
输入
🔒 100% client-side
输出
Results will appear here

About this tool

在 HEX、RGB、RGBA、HSL、HSV 和 CMYK 六种颜色格式之间即时互转。支持 CSS 颜色名称(如 coral、tomato),内置原生取色器,并输出 CSS 自定义属性格式,方便直接使用。

Frequently Asked Questions

What color formats are supported?

HEX (#FF5733), RGB (rgb(255,87,51)), RGBA, HSL (hsl(11,100%,60%)), HSV, CMYK, and all CSS named colors like coral, tomato, or steelblue.

What is HSL and when should I use it?

HSL stands for Hue, Saturation, Lightness. It is more intuitive than RGB for creating color variations — adjusting lightness is straightforward and predictable, making it popular in CSS.

What is CMYK used for?

CMYK (Cyan, Magenta, Yellow, Key/Black) is the color model used in printing. If you are preparing designs for physical print, you will need CMYK values.