RGB 转 Hex
输入红、绿、蓝通道值(0–255),即可获得对应的 Hex 代码。
每个通道必须是 0 到 255 之间的整数。
即时切换 RGB 与 Hex 颜色代码,复制任一结果,并查看实时颜色预览。
输入红、绿、蓝通道值(0–255),即可获得对应的 Hex 代码。
每个通道必须是 0 到 255 之间的整数。
粘贴 3 位或 6 位的 Hex 颜色即可查看 RGB 表示。
使用 #RRGGBB 或 #RGB 格式,字母大小写不区分。
RGB 通过红、绿、蓝三种光的强度来表示颜色,是显示器、LED 以及大多数设计软件的原生格式。
当需要微调对比度、无障碍表现或渐变效果时,分别调整 RGB 通道可以提供精确的控制。
Hex 将三个 RGB 通道压缩成六个字符的紧凑代码,便于粘贴到 CSS、设计令牌或代码片段中。
这种格式在不同工具之间容易传递,同时对设计师和开发者都友好易读。
按照以下步骤即可手动完成 RGB 与 Hex 的转换。
从 Hex 转到 RGB 时,将字符串按两位拆分,转换为十进制后即可得到各通道值。
RGB ↔ Hex 转换器 is a focused browser tool: 即时切换 RGB 与 Hex 颜色代码,复制任一结果,并查看实时颜色预览。.
Use the controls on this page for RGB ↔ Hex 转换器 and check the output directly. Review results before using them in documents, code or other important contexts.
Related terms for this tool include rgb 转 hex, hex 转 rgb, 颜色转换器, hex 转换器 and rgb 转换器. These terms are used as orientation only; the visible controls and the entered data define what the tool actually does.
RGB ↔ Hex 转换器 is useful when you need this specific task handled quickly: 即时切换 RGB 与 Hex 颜色代码,复制任一结果,并查看实时颜色预览。.
Compare the visible output with the labels on the page, especially when your task involves rgb 转 hex, hex 转 rgb, 颜色转换器, hex 转换器 and rgb 转换器.
The most common reasons are missing input, unsupported characters, browser state or changed settings for RGB ↔ Hex 转换器.