Index | Wikipedia | Time Travel App
Hexadecimal - Base16
Each digit goes from 0-15 (A-F replace the decimal numbers 10-15).
Hex | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | 10 | 11 | 12 | 13 |
Dec | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
Expanded Values
To find the decimal number times each digit by 16power of digits location and add them together.
5BF is a hex number
5BF = (5 * 162) + ( (B = 11) * 161) + ( (F = 15)* 160)
5BF = (5 * 256) + (11 * 16) + (15* 1)
5BF = 1280 + 176 + 15
5BF = 1471 (in decimal)
162 16*16 | 161 16 | 160 1 | Expanded value of Hexadecimal | Decimal | ||
256s | 16s | 1s | 100s | 10s | 1s | |
0 | 0 | 1 | (256*0) + (16*0) + (1*1) | 0 | 0 | 1 |
0 | 1 | 1 | (256*0) + (16*1) + (1*1) | 0 | 1 | 7 |
1 | 1 | 1 | (256*1) + (16*1) + (1*1) | 2 | 6 | 3 |
0 | 0 | 1 | (256*0) + (16*0) + (1*1) | 0 | 0 | 1 |
0 | 0 | 9 | (256*0) + (16*0) + (1*9) | 0 | 0 | 9 |
0 | 0 | A | (256*0) + (16*0) + (1*10) | 0 | 1 | 0 |
0 | 0 | F | (256*0) + (16*0) + (1*15) | 0 | 1 | 5 |
0 | 1 | 0 | (256*0) + (16*1) + (1*0) | 0 | 1 | 6 |
0 | 1 | 2 | (256*0) + (16*1) + (1*2) | 0 | 1 | 8 |
1 | 3 | 3 | (256*1) + (16*3) + (1*3) | 3 | 0 | 7 |
1 | 2 | 3 | (256*1) + (16*2) + (1*3) | 2 | 9 | 1 |
3 | 3 | 3 | (256*3) + (16*3) + (1*3) =
| 8 | 9 | 1 |
Uses for Hexadecimal - Hex color
Computer use binary and people use decimal. They are not easy to convert between.
Hexadecimal and binary are though: 1 byte (8 bits) can store 256 different combinations of numbers, which is the same as 2 hexs (FF).
You can make a huge number of different colors by saying how much red, green and blue you want in the color. Each color has 2 columns that can hold the numbers 0-F.
The color order is Red, Green and Blue.
F means full color, 0 means no color, so Red = #FF0000, Green = #00FF00 and Blue = #0000FF. All colors at full intensity make white #FFFFFF, No color makes black #000000
Try it yourself
![16s color table](https://assets.codeavengers.com/file/cloud/wiki/number/hex-color.png)
- download
- new file
- upload media
- rename
- delete
Run Ctrl+Enter
Check Ctrl+Shift+Enter
Reset Ctrl+Backspace
Redo Ctrl+Y
Cut Ctrl+X
Copy Ctrl+C
Paste Ctrl+V
Find Ctrl+F
Find & replace Ctrl+F+F