BigBigTools

功能建议

欢迎告诉我们您的建议,帮助我们改进工具。 支持粘贴图片或选择上传,最多5张,每张不超过1MB(PNG、JPEG、WebP)。

English简体中文日本語한국어FrançaisDeutschEspañolPortuguês
BigBigTools

RGB to Hex Color Converter

Enter red, green and blue color levels (0..255) and press the Convert button:

RGB to Hex color table

Color Color

name

(R,G,B) Hex
  Black #000000
  White #FFFFFF
  Red #FF0000
  Lime #00FF00
  Blue #0000FF
  Yellow (255,255,0) #FFFF00
  Cyan (0,255,255) #00FFFF
  Magenta (255,0,255) #FF00FF
  Silver (192,192,192) #C0C0C0
  Gray (128,128,128) #808080
  Maroon (128,0,0) #800000
  Olive (128,128,0) #808000
  Green (0,128,0) #008000
  Purple (128,0,128) #800080
  Teal (0,128,128) #008080
  Navy (0,0,128) #000080

RGB to hex conversion

  1. Convert the red, green and blue color values from decimal to hex.
  2. Concatenate the 3 hex values of the red, green and blue togather: RRGGBB.

Example #1

Convert red color (255,0,0) to hex color code:

R = 25510 = FF16

G = 010 = 0016

B = 010 = 0016

So the hex color code is:

Hex = FF0000

Example #2

Convert gold color (255,215,0) to hex color code:

R = 25510 = FF16

G = 21510 = D716

B = 010 = 0016

So the hex color code is:

Hex = FFD700



Additional explanations and examples

How to convert RGB to hex color

How to convert from RGB color to hexadecimal color code.

RGB color

The RGB color is a combination of Red, Green and Blue colors:

(R, G, B)

The red, green and blue use 8 bits each, which have integer values from 0 to 255.

So the number of colors that can be generated is:

256×256×256 = 16777216 = 100000016

Hex color code

Hex color code is a 6 digits hexadecimal (base 16) number:

RRGGBB16

The 2 left digits represent the red color.

The 2 middle digits represent the green color.

The 2 right digits represent the blue color.

RGB to hex conversion

  1. Convert the red, green and blue color values from decimal to hex.
  2. Concatenate the 3 hex values of the red, green and blue togather: RRGGBB.

Example #1

Convert red color (255,0,0) to hex color code:

R = 25510 = FF16

G = 010 = 0016

B = 010 = 0016

So the hex color code is:

Hex = FF0000

Example #2

Convert gold color (255,215,0) to hex color code:

R = 25510 = FF16

G = 21510 = D716

B = 010 = 0016

So the hex color code is:

Hex = FFD700



About this tool

Enter red, green and blue color levels (0..255) and press the Convert button: Convert red color (255,0,0) to hex color code: Convert gold color (255,215,0) to hex color code:

Chat with AI about this tool

Paste the prompt into Gemini. Only the tool name and public page URL are included.

View the prompt