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

Concept behind color codes?

i have lost many of the challenges due to color-codes , i am not able to memorise these codes, help me to understand simple concept behind these codes...

2nd Sep 2017, 4:38 AM
Mohit
Mohit - avatar
5 Answers
+ 5
Color codes are in hexadecimal, meaning you don't count up to 9 before adding a digit but up to F (which is 15) You can write a color code with 3 digits: the first one for the amount of red, the second one for the amount of green and the third one for the amount of blue Therefore #F00 has 100% of red and 0% of green and blue, it turns out to be red. If you want more specific colors it's possible to use 2 digits for red, green and blue each. With that second notation, red becomes #FF0000 I recommend you to use color charts which you can easily find on google
2nd Sep 2017, 5:03 AM
Dapper Mink
Dapper Mink - avatar
+ 5
No need to memorise, use rgb color charts
2nd Sep 2017, 5:25 AM
Dapper Mink
Dapper Mink - avatar
0
but i dont want to memorise
2nd Sep 2017, 5:20 AM
Mohit
Mohit - avatar
0
ok.
2nd Sep 2017, 5:26 AM
Mohit
Mohit - avatar
0
I really don't find it useful to keep them all in mind, you directly can type their name or copy. Just don't worry about challenges as luckily they repeat questions many time, you will be in habit of.
24th Sep 2017, 3:57 PM
Mr_Yaman
Mr_Yaman - avatar