+ 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
8 Answers
+ 10
#RRGGBB
= RED GREEN BLUE
#FF0000= RED
#00FF00= GREEN
#0000FF= BLUE
#FF0000 (RED)
+#00FF00 (GREEN)
= #FFFF00 (YELLOW)
+ 9
Andrew G just missed the 0s , so
256 * 256 * 256 = 16, 777, 216 possible colors. đ
+ 8
This may be helpful:
https://code.sololearn.com/W5Of8safsGpc/?ref=app
+ 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.
+ 5
Color mixer at w3school
https://www.w3schools.com/colors/colors_mixer.asp
+ 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.
+ 3
your welcome
+ 3
Thanks for all your contribution