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 trialamyp
6,574 Pointsplease explain hexadecimal colors
please explain hexadecimal colors
3 Answers
Dan Oswalt
23,438 Points4f92ee <--- let's break this down.
- Break it into 3 chunks, so (4f, 92, ee)
- Those chunks represent (Red, Green, Blue)
- Those 2-digit chunks are numbers and letters that represent a value between 1 and 256.
- Each digit uses the number 1-10, and then a-f, in order to have a 16-base value, and 16 * 16 is 256.
- So 4f would be a darkish red, mixed with 92, a lightish green, and ee would be a very light blue.
- Mixed all those values toether to get whatever that color is.
- It is exactly like using rgb(45, 150, 240) in css. (These are made-up numbers, I don't know wha t#4f92ee corresponds to), but more concise.
Eric Butler
33,512 PointsTry this article.
Martha Fontelera
1,556 PointsGuil also explained everything here: https://teamtreehouse.com/library/color-values-3
Hope that helps!