Runs locally No signup No watermark
转换器 工具
HEX 到 RGB 转换器

Convert HEX to RGB and to every modern color format — including OKLCH, OKLAB, LAB, LCH, CMYK, and Display-P3 from CSS Color Module Level 4. Live WCAG 2.2 contrast analysis and 8-type color blindness simulation help build accessible designs.

✓ 100% 免费 ✓ 无需注册 🔒 文件保留在设备上
1

上传

2

调整和预览

Pixlane
Preparing the tool on your device

Pixlane is loading locally. Supported local media processing, no signup, and supported file contents are not uploaded for processing.

RGB 到 HEX 转换器

将 RGB 转换为 HEX,以及所有现代 CSS 颜色格式——HSL、OKLCH、OKLAB、LAB、LCH、CMYK、Display-P3。实时 WCAG 2.2 对比度分析和 8 种色盲模拟,助您打造无障碍设计。

将 RGB 颜色值转换为 HEX——还支持 HSL、OKLCH、Display-P3、CMYK 和 WCAG 对比度。

常见问题

RGB 转 HEX 的公式是什么?

每个 RGB 通道(0-255)都会转换为 2 位的十六进制值。例如:rgb(255, 100, 50) → #ff6432。

那 OKLCH 和 Display-P3 呢?

Pixlane 还支持导出为 OKLCH(CSS Color Level 4)、Display-P3、CMYK 等多种格式。任何格式都能一键复制。

文件大小上限是多少?

目前每个文件的上限为 20MB。批量处理功能计划在未来更新中加入。

相关工具