RGB and HEX conversions Calculator
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 16Red 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 16Green 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 16Blue 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 = 0Calculate Hue for RGB = (776644, , )
Since R ≥ G ≥ B, 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 |
You have 1 free calculations remaining
What is the Answer?
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?
conversiona number used to change one set of units to another, by multiplying or dividinghexadecimalBase 16 number systemrgban 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 conversionsExample calculations for the RGB and HEX conversions Calculator
Tags:
Add This Calculator To Your Website
ncG1vNJzZmivp6x7rq3ToZqepJWXv6rA2GeaqKVfqLKivsKhZamgoHS%2BfrTUnlxraJ%2BbcnN8hGttqaelo7Fmf6Fwbm9uZGk%3D
Abbie Anker
Update: 2024-04-24