Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

sean farrelly
sean farrelly
1,614 Points

How to create a paragraph with the hexadecimal value black.

How to create a paragraph with the hexadecimal value black.

a {
  text-decoration: none;

#wrapper {
  max-width: 940px;
  margin: 0 auto;

#logo {
  text-align: center;
  margin: 0;
h1,h2 {color:#fff;
(p){ color:#6a647b;

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! First, I don't know where you're getting the parentheses from, but they aren't needed. It also seems that you might be getting HTML and CSS mixed up a bit as you have what looks like the ending tag for a paragraph (except that it's in parentheses instead of angle brackets). This is also not needed.

In hexadecimal FF is equivalent to the decimal value 255. So if you look at the rule above, you've selected h1 and h2 and assigned a color of #FFF (which is white). This is equivalent to rgb(255,255,255). The color white is produced as the reflection of all colors simultaneously. The color black is produced when all colors are absorbed simultaneously in the presence of a light source. Otherwise, it is the color in the absence of a light source.

So given this information:

p {
   color:  #___;

I will leave you to figure out the three numbers that give the hexadecimal for black :smiley: