+ 3

HTML Challenges Asking For Color Given Hex Values

While doing HTML challenges lately, I've come across some questions where you are given a 6 digit hex value like #454545 and you need to name the color. I'm not exactly sure how you'd get the question right wothout searching it up online or something and it doesn't even seem related to what we've been learning in the HTML course at all other than the fact that they're Hex codes you can use for the color and bgcolor attribute in HTML. I think these types of questions should be removed.

16th Mar 2017, 9:42 AM
Andy
4 ответов
+ 6
Hexadecimal color's code are quite simple to understand, with: #00 00 00 You will have black... but why? Because you have to read it that way: #RED GREEN BLUE #00 red 00 green 00 blue Then you have no color... basicly it's black. 0 is smallet value, F is highest. #FFFFFF is sum of max RED, GREEN, BLUE, which is white. Have a look at it: http://common.ziffdavisinternet.com/encyclopedia_images/RGB.GIF So if we type: #FF0000 You can read it that way: #100% red 0% green 0% blue ...it's red then. #FF00FF #100% red 0% green 100% blue blue + red => purple and so on :) So #454545 ...same amount of red, green, blue... not 0, not F... between both value, you will have grey shade.
16th Mar 2017, 9:52 AM
Geoffrey L
Geoffrey L - avatar
+ 15
The colour codes I've come across are ones of general knowledge, such as #000000 and #FFFFFF or #FF0000.
16th Mar 2017, 9:44 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
well you can'tsay it wasn'ta useful quiz. You learned hex color values after all!
16th Mar 2017, 10:05 AM
seamiki
seamiki - avatar
0
A shortcut that you can use for hex codes is that if the code is repeating, you can use #000 or #FFF. You don't have to type out the full hex code.
19th Mar 2017, 9:12 AM
Jim Tryon
Jim Tryon - avatar