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! While you're at it, check out some resources Treehouse students have shared here.

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

CSS

Do hexadecimal colors average between the two numbers/letters?

I get how #888888 is gray because 8 is in the middle, and how #fffff is white because it's at the end, but how can two characters make up a high or low value if they're at different places on the scale?

In, for example, #4a2b1c, he said "4a" is a high amount of red or something like that. Is that because "a" is higher and it averages between 4 and a on the scale?

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

No. It's because the 4a is the first number in the RGB equivalent. 4a expressed as decimal would be 74. The entire rgb value of #4a2b1c would be RGB(74, 43, 28). So 2b is 43, and 1c is 28. Here's a wikihow I found on how to count in hexadecimal http://www.wikihow.com/Understand-Hexadecimal