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.


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/