RGB to HEXHEX to RGB
<-- RED
<-- GREEN
<-- BLUE

Enter RGB


Given RGB = R:776644, G:B:
Calculate hex code and hue.

Calculate Piece 1 of the Red portion:

Red Piece 1  =  Red - Red mod 16
  16

Red Piece 1  =  776644 - 776644 mod 16
  16

Check our modulus lesson
776644 mod 16 = 4
Red Piece 1  =  776644 - 4
  16

Red Piece 1  =  776640
  16

Red Piece 1 = 48540
In the string 0123456789ABCDEF
We use position 48540 =

Calculate Piece 2 of the Red portion:

Red Piece 2 = Red mod 16
Red Piece 2 = 776644 mod 16
Red Piece 2 = 4

In the string 0123456789ABCDEF
We use position 4 = 4

Calculate Piece 1 of the Green portion:

Green Piece 1  =  Green - Green mod 16
  16

Green Piece 1  =   - mod 16
  16

Check our modulus lesson
mod 16 = 0
Green Piece 1  =   - 0
  16

Green Piece 1  =  0
  16

Green Piece 1 = 0
In the string 0123456789ABCDEF
We use position 0 = 0

Calculate Piece 2 of the Green portion:

Green Piece 2 = Green mod 16
Green Piece 2 = mod 16
Green Piece 2 = 0

In the string 0123456789ABCDEF
We use position 0 = 0

Calculate Piece 1 of the Blue portion:

Blue Piece 1  =  Blue - Blue mod 16
  16

Blue Piece 1  =   - mod 16
  16

Check our modulus lesson
mod 16 = 0
Blue Piece 1  =   - 0
  16

Blue Piece 1  =  0
  16

Blue Piece 1 = 0
In the string 0123456789ABCDEF
We use position 0 = 0

Calculate Piece 2 of the Blue portion:

Blue Piece 2 = Blue mod 16
Blue Piece 2 = mod 16
Blue Piece 2 = 0

In the string 0123456789ABCDEF
We use position 0 = 0

Our final RGB to HEX conversion is below:

R:776644, G:, B: → = = 4 = 0 = 0 = 0 = 0

Calculate Hue for RGB = (776644, , )

Since RGB, we are in the Red-Yellow region and the formula is below:
h  =  60°(G - B)
  R - B

h  =  60°( - )
  776644 -

h  =  60°(0)
  776644

h  =  0
  776644

h =



You have 2 free calculationss remaining




What is the Answer?
h =

How does the RGB and HEX conversions Calculator work?
Free RGB and HEX conversions Calculator - This converts HTML colors from RGB (Red, Green, Blue) to HEX and HEX to RGB (Red, Green, Blue) as well as calculate the Hue.
This calculator has 4 inputs.

What 4 concepts are covered in the RGB and HEX conversions Calculator?

conversion
a number used to change one set of units to another, by multiplying or dividing
hexadecimal
Base 16 number system
rgb
an additive color model in which the red, green, and blue primary colors of light are added together in various ways to reproduce a broad array of colors.
rgb and hex conversions
Example calculations for the RGB and HEX conversions Calculator

Tags:



Add This Calculator To Your Website