Pantone工具

RGB to HEX

将 RGB 颜色值转换为适用于网页设计和数字应用的十六进制代码

对于从事数字色彩工作的开发人员和设计人员来说,必不可少的工具

颜色转换器

RGB Input

255
0 128 255
0
0 128 255
0
0 128 255

点击颜色样本查看示例

HEX Output

#FF0000

HEX Value

其他格式

RGB Value

rgb(255, 0, 0)

HSL Value

hsl(0°, 100%, 50%)

十进制值

16711680

CSS 使用

color: #FF0000;

颜色信息

这种鲜红色是 RGB 模型中的原色。其十六进制表示使用红色的最大值 (FF) 以及绿色和蓝色的最小值 (00)。

转换示例

鲜艳的红色

RGB 255, 0, 0
HEX #FF0000
HSL 0°, 100%, 50%

森林绿

RGB 34, 139, 34
HEX #228B22
HSL 120°, 61%, 34%

皇家蓝

RGB 65, 105, 225
HEX #4169E1
HSL 225°, 73%, 56%

阳光黄

RGB 255, 215, 0
HEX #FFD700
HSL 50°, 100%, 50%

深紫色

RGB 128, 0, 128
HEX #800080
HSL 300°, 100%, 25%

浅灰色

RGB 211, 211, 211
HEX #D3D3D3
HSL 0°, 0%, 83%

推荐工具

关于此工具

此 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.

常见问题