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.