what is the best way to understand html colours | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

what is the best way to understand html colours

I get confused in the quiz because of the colours I need to learn and understand them

1st May 2018, 1:27 PM
Webster
Webster - avatar
8 Answers
+ 10
#RRGGBB = RED GREEN BLUE #FF0000= RED #00FF00= GREEN #0000FF= BLUE #FF0000 (RED) +#00FF00 (GREEN) = #FFFF00 (YELLOW)
1st May 2018, 1:41 PM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 9
Andrew G just missed the 0s , so 256 * 256 * 256 = 16, 777, 216 possible colors. 😊
2nd May 2018, 12:46 AM
Morpheus
Morpheus - avatar
1st May 2018, 2:21 PM
DAB
DAB - avatar
+ 6
By HTML colors I'm guessing you mean hexadecimal colors. Hex colors take the following format #RRGGBB The pound sign in the front is standard hex color syntax. The "RRGGBB" is the color portion. It's split into three sections. The first two digits (in our case RR) make up the color red. The second portion (GG) make up the color green. These values are in hex notation, if you're not familiar with hexadecimal I would recommend learning it. But it's similar to our base 10 number system (0123456789) but hexadecimal has 16 digits instead (0123456789ABCDEF). With 2 digits for each color, we can reach a max value of 255. But what do these values mean? It's brightness. For each color, the value of the digits determine how bright the color is. 00 means it's completely black, while FF means it is at max brightness. For example, #FF0000 would produce a pure red color because the red is maxed out while the green and blue are completely dark. #00FF00 would be pure green because red and blue are completely dark, while green is maxed out. Using these values, we can create about 16 million unique color combinations.
1st May 2018, 11:40 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
1st May 2018, 1:46 PM
Rahul George
Rahul George - avatar
+ 3
I never bothered much with learning hex colors and just used a color picker or pallette to select mine. This post is actually quite informative for me.
2nd May 2018, 2:05 AM
Byron Thurman
Byron Thurman - avatar
+ 3
your welcome
5th May 2018, 7:48 AM
Webster
Webster - avatar
+ 3
Thanks for all your contribution
5th May 2018, 7:49 AM
Webster
Webster - avatar