Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Hexadecimal colors are represented by a pound sign followed by a series of letters and numbers. like this: #RRGGBB or #RGB
Which of these is Not a hexadecimal color?
Haider AliPython Development Techdegree Graduate 24,724 Points
Hi there Jason. The counting system we use in our everyday lives is base 10 also known as decimal. It includes the numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Hexadecimal is base 16. However, you may be thinking there are only 10 numbers and Hexadecimal uses 16. Well, after 9, the first 6 letters of the alphabet are used to represent 10, 11, 12, 13, 14, 15. so these are all the units that hexadecimal uses:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
These are the only units that hexadecimal uses so the one which is not hexadecimal would be B as it includes the letter L which is not a part of hexadecimal. If you have not learnt about hexadecimal before, this may seem slightly confusing but you should get used to it :)
Kristian Gausel14,661 Points
Don't be confused about the #RRGGBB part of the question. Hex only has the letters A-F where A is 10, B is 11, C is 12 and so on.
Tobias Helmrich31,602 Points
the right answer is "B. 9972GL" because hex values only go up until "F". So "G" and "L" are invalid.
I hope that helps! :)