RGB to HEX
将 RGB 颜色值转换为适用于网页设计和数字应用的十六进制代码
颜色转换器
HEX Output
HEX Value
其他格式
RGB Value
rgb(255, 0, 0)
HSL Value
hsl(0°, 100%, 50%)
十进制值
16711680
CSS 使用
color: #FF0000;
颜色信息
这种鲜红色是 RGB 模型中的原色。其十六进制表示使用红色的最大值 (FF) 以及绿色和蓝色的最小值 (00)。
转换示例
鲜艳的红色
森林绿
皇家蓝
阳光黄
深紫色
浅灰色
推荐工具
关于此工具
此 RGB 到 HEX 转换器简化了网页设计、图形设计和开发中使用的两种常见数字颜色格式之间的转换过程。
RGB (Red, Green, Blue) represents colors as combinations of three primary light sources, with each value ranging from 0 to 255. This model is used in digital displays, where light is emitted to create colors.
HEX (Hexadecimal) is a base-16 numbering system that condenses RGB values into a six-character string prefixed with a hash (#). Each pair of characters represents the intensity of red, green, and blue respectively, using values from 00 to FF.
HEX codes are particularly popular in web development because they're more compact than RGB values and easily recognized by all modern browsers. This conversion tool provides accurate translations between these formats, essential for consistent color implementation across digital projects.