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 How to Make a Website Customizing Colors and Fonts Use Color in CSS

Tobi Ogunnaike
Tobi Ogunnaike
2,242 Points

Hexadecimal colour scheme: #6ab47b ?

In this video, why does Nick say 6a is a medium amount of red and b4 is a high amount of green.

Isn't '6a' essentially=6+11=17?

Whilst 'b4' is kinda like 12+4=16?

If the above is true, then the colour has slightly more green than red.

Or am I getting the hexadecimal thing wrong?

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

Hi Tobi,

Thats not how you calculate hexadecimal values.

6A is 6*16^1 + A*16^0 which is 96 + 10 = 106

B4 is B*16^1 + 4*16^0 which is 176 + 4 = 180

Tobi Ogunnaike
Tobi Ogunnaike
2,242 Points

Thanks, that clears up the confusion!