COLOR HASH CODES | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

COLOR HASH CODES

How can one know genuine color hash codes? Is it that they all start and end with a number or letter?

10th Jul 2019, 1:46 PM
👑 Tchybooxuur!
👑 Tchybooxuur! - avatar
4 Answers
+ 7
#rrggbb is the hexadecimal representation of color In hexadecimal representation each letter can be a digit(0-9) or an alphabet(a-f or A-F) The alphabets represent numbers beyond 9 (upto 15) eg : a = 10, c = 13, f = 15 So, a hexadecimal number can represent any of 16 possbility (0-f) Color codes generally have two hexadecimal numbers for each of three primary color, giving 256 different possibility each for red, green and blue. eg. A0 means 160 (16*10 + 1*0) 22 means 34 (16*2 + 1*2) FF means 255 (16*15 + 1*15) And, hence codes like #1275a8 can be break down into rr, gg, bb hexadecimal combinations A reddish color has higher rr than gg or bb
11th Jul 2019, 12:18 PM
Om Kumar
Om Kumar - avatar
+ 3
It's from gbr system
10th Jul 2019, 11:21 PM
Eng Dawood
Eng Dawood - avatar
+ 3
Could you throw more light sir?
11th Jul 2019, 5:10 AM
👑 Tchybooxuur!
👑 Tchybooxuur! - avatar
+ 3
Oh yes I'm sorry it's rgb not gbr
11th Jul 2019, 9:23 PM
Eng Dawood
Eng Dawood - avatar