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

Anybody HELP?

How can I combine the letters and numbers in HTML color? in the lessons and comments i didn't see anyone and no ones answered me why is this #C1250F came out something like red color? how is in order like that?

9th May 2017, 1:07 PM
¤ rookie ¤
¤ rookie ¤ - avatar
1 Answer
+ 7
Hexadecimal count with digit from 0 to F ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F -- 16 digits rather than 10 in decimal ) Number are composed as decimal, but with more digit: 8, 9, A, B, C, D, E, F, 10, 11... 1F, 20... In the 6 digits hexadecimal number of a color code, you must consider pairs. Each one encode the level of respectively red, green, and blue. Full red and full green make yellow Full red and full blue make magenta Full green and full blue make cyan Full of three make white Zero of three make black All three values equal make gray level With this basics, you'll be able to evaluate the real color produced by any color code ;)
9th May 2017, 1:18 PM
visph
visph - avatar