跳到主要内容
Z

What is Hexadecimal?

Hexadecimal is a base-16 number system using digits 0-9 and letters A-F to represent values ten to fifteen. Each hex digit maps to exactly four binary bits, so it is a compact, human-readable way to write binary data such as colours, memory addresses, bytes and hashes.

Because 16 is 2⁴, one hex digit equals four binary digits and one byte is exactly two hex digits. So the byte 11111111 in binary is FF in hex (255 in decimal). Hex is often prefixed with 0x.

It is used for colour codes (#FF8800), memory addresses, MAC addresses, byte dumps and hash digests — anywhere bytes need a short, readable representation.

Hexadecimal tools

常见问题

HEX 支持透明度吗?

支持——开启透明度开关后,HEX 会扩展为 8 位字符(#RRGGBBAA)。现代浏览器和大多数设计工具都能识别这种格式。

为什么我的 HSL 和 HSV 数值被四舍五入了?

为了便于阅读,界面上显示的各通道数值会被四舍五入为整数百分比。但内部转换始终保留完整精度,因此再转换回 RGB 时依然能得到最初准确的字节值。

转换出的 CMYK 颜色和我印刷软件里的看起来不太一样。

浏览器和大多数在线转换工具使用的是简化版 RGB↔CMYK 换算公式——实际印刷颜色还取决于色彩配置文件(ICC、GRACoL、FOGRA)。这里给出的结果仅适合作为屏幕上的估算参考。

如果我只需要在 HEX 和 RGB 之间转换呢?

这个工具支持全部五种格式,但如果你只是想快速转换,只需把 HEX 值粘贴到最上面一行,然后在第二行读取对应的 RGB 值即可。