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


Oly Su
Oly Su
6,119 Points

Is CSS RGB colors okay to use in older IEs?

Is it safe to use RGB colors in CSS for older IEs? Should I prepare a HEX fallback?

For example:

p { color: #000; color: rgb(0, 0, 0); }

Understanding RGBA and HSL are not well supported in older IEs and HEX fallbacks are necessary, not sure if RGB requires the same fallback.

The reason I raise this overly-meticulous matter is because of a project with large number of IE users. On top of that we've been given a specific styleguide with CMYK and RGB color codes, no HEX.

Many thanks :)

1 Answer

Cassio Victor Cadore
Cassio Victor Cadore
6,579 Points

Oly, rgb() is supported from IE6 and above. ( http://www.browsersupport.net/CSS/rgb() ) The only thing to take care of is with background, as said here: http://css-tricks.com/ie-background-rgb-bug/