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.

常見問題