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.

CSS CSS Basics (2014) Understanding Values and Units Color Values

What is the rgb of black and white? :(

I took the quiz, it asked what is pure white and black, I put FFF and 000, but I kept getting it wrong. I just gave up. I looked online and on the video, it says white is FFFFFF and black is 000000, can someone tell me what i was supposed to put then? It said rgb( ? , ? , ?) for white and rbg (?,?,?) for black.

4 Answers

THANK YOU. I kept putting F, that must be why I got it wrong. That was frustrating me a lot.

Zainub Baig. F is in the Hex value for white. So you may be confusing #FFFFFF or #FFF shorthand (white) with rgb(255,255,255); (also white) and #000 (Black) with rgb(0,0,0); (also Black). The two letters/number blocks in hex values correlate with RGB. So in the hex #169BCE, 16 is the amount of red, 9B is the amount of green, and CE is the amount of blue in the color.

Ryan Field
PLUS
Ryan Field
Courses Plus Student 21,241 Points

The RGB values for black and white are rgb(0, 0, 0) and rgb(255, 255, 255), respectively. :)

Oops, 255

Did you use #? #fff and #000. Also, rgb(256,256,256) is white, rgb(0,0,0) is black