RGB⇔HEXカラー変換ツール
ライブプレビュー付きでRGBチャンネルと#RRGGBBを相互変換します。
返済スケジュール
| # | 支払い | 元金 | 利息 | 残高 |
|---|---|---|---|---|
時間経過による成長
| 年 | 投資額 | 値 |
|---|---|---|
はじめに
RGB ↔ HEX Color Converter - Convert between RGB channels and #RRGGBB with a live preview. Enter Convert, R, G, B to get an instant result.
計算式
RGB → Hex: each channel (0-255) converted to a 2-digit hex pair. Hex → RGB: each hex pair parsed back to a 0-255 decimal value.
ステップごとの説明
- Enter the Convert.
- Enter the R.
- Enter the G.
- Enter the B.
- Click Calculate to see your result instantly.
実例
Example: With Convert = rgb_to_hex, R = 255, G = 87, B = 51, the RGB ↔ HEX Color Converter gives Hex: #FF5733.
よくある質問
What range are RGB values in?
Does the hex code need a # prefix?
What inputs does the RGB ↔ HEX Color Converter need?
How accurate is the RGB ↔ HEX Color Converter?
Is the RGB ↔ HEX Color Converter free to use?
RGB⇔HEXカラー変換ツールについて
Color codes are fundamental to web design, graphic design, and digital art. Two of the most common formats are RGB and HEX. RGB expresses a color as three numbers representing the intensity of red, green, and blue light. HEX expresses the same information as a six-character hexadecimal code. The RGB HEX Color Converter on CalculatorCast converts between these two formats instantly, with a live color preview so you can see exactly what you are working with.
In RGB, each channel (red, green, blue) has a value from 0 to 255. A value of 0 means none of that color component is present, and 255 means maximum intensity. Pure red is RGB(255, 0, 0). Pure green is RGB(0, 255, 0). Pure blue is RGB(0, 0, 255). White is RGB(255, 255, 255) and black is RGB(0, 0, 0). With 256 possible values for each of three channels, there are over 16 million possible RGB colors.
In HEX format, the same color is written as a hash sign followed by six hexadecimal digits. The first two digits represent red, the next two green, and the last two blue. Each pair of hex digits represents a value from 0 (00) to 255 (FF). Pure red is #FF0000. Pure green is #00FF00. Pure blue is #0000FF. White is #FFFFFF and black is #000000.
Web developers use HEX codes in CSS and HTML to specify colors. Graphic designers working in tools like Figma, Adobe Photoshop, and Illustrator work with both RGB and HEX depending on the context. Our converter makes it easy to switch between formats when moving designs between tools or writing CSS from a design file.
A three-digit shorthand HEX format exists for colors where each pair of digits is identical. For example, #FF0000 can be written as #F00. Our converter displays both the full six-digit and the shorthand three-digit format when applicable.
The converter also supports RGBA and HEXA formats, which include an alpha channel for transparency. The alpha value ranges from 0 (fully transparent) to 1 in RGBA, or from 00 to FF in the eighth digit of an 8-digit HEX code.
The RGB HEX Color Converter is free on CalculatorCast and works on all devices without registration. Enter your color values and get the converted result with a live preview instantly.