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) 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,242 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