跳到主要内容
uencoder

颜色转换器

在 HEX、RGB、HSL、HSV 和 CMYK 颜色空间之间转换颜色,自动识别输入格式。免费、隐私、100% 客户端运行。输入 HEX、RGB 或 HSL 任一格式,即可同时获得所有五种颜色空间的值,适合前端开发、设计稿取色、印刷配色等场景。

尝试示例:
Local only

最近历史

暂无历史

使用方法

  1. 输入 HEX、RGB 或 HSL 格式的颜色。
  2. 查看所有颜色空间的转换值。
  3. 复制所需格式。

使用此工具的任务

使用此工具的管道

常见问题

Which input formats are auto-detected?
HEX (e.g. #FF5733 or FF5733), RGB (e.g. rgb(255, 87, 51)), and HSL (e.g. hsl(11, 100%, 60%)) are auto-detected from the input.
Which output color spaces are produced?
HEX, RGB, HSL, HSV, and CMYK values are all returned for every valid input, one per line.
What is the difference between HSL and HSV?
Both use hue, saturation, and a lightness/value component. HSL's Lightness goes 0=black to 100=white regardless of saturation. HSV's Value goes 0=black to 100=the pure hue. HSV matches how humans perceive color; HSL is more intuitive for tint/shade.
When is CMYK useful?
CMYK is the subtractive color model used in printing. If you are preparing a design for print, convert your screen color to CMYK to preview how it will appear on paper.
Are 3-digit HEX codes supported?
Yes. #F00 is expanded to #FF0000, #abc to #aabbcc, following the CSS shorthand convention.
遇到无效输入会怎样?
The tool reports an error and does not produce partial output. Check that your HEX has 3 or 6 hex digits, or that RGB/HSL values are within their valid ranges.

相关工具