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 CSS Basics (2014) Basic Selectors Type Selectors

please explain hexadecimal colors

please explain hexadecimal colors

3 Answers

4f92ee <--- let's break this down.

  1. Break it into 3 chunks, so (4f, 92, ee)
  2. Those chunks represent (Red, Green, Blue)
  3. Those 2-digit chunks are numbers and letters that represent a value between 1 and 256.
  4. Each digit uses the number 1-10, and then a-f, in order to have a 16-base value, and 16 * 16 is 256.
  5. So 4f would be a darkish red, mixed with 92, a lightish green, and ee would be a very light blue.
  6. Mixed all those values toether to get whatever that color is.
  7. 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.