Hexadecimal ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Hexadecimal ?

Can any body tell me about Hexadecimal How can i use them to define thousands of colour?

9th Jun 2018, 4:38 AM
Aquarius Girl ♀ 🙂
Aquarius Girl ♀ 🙂 - avatar
2 Answers
9th Jun 2018, 5:13 AM
Rahul George
Rahul George - avatar
+ 3
Hexadecimal is digital number system and it's range from 0 to f. 0-9 and 10-15 = a-f and one hexadecimal entity is represented as 4 binary digits. So widely used color system is rgb or argb, each color will be represented from 0 to 255 in decimal and 0x00 to 0xff in hexadecimal . So each color consists of 8bits, so total ranges for rgb is 24 bits(in hexadecimal is 0x000000 to 0xffffff) and argb is 32 bits (in hexadecimal is 0x00000000 to 0xffffffff) Example, RGB: RED = 0xff0000 GREEN = 0x00ff00 BLUE = 0x0000ff.
9th Jun 2018, 11:31 AM
Sitharaj Seenivasan
Sitharaj Seenivasan - avatar