Choosing the Right Color Value: RGB or Hex

Q: Should I use Hex or RGB values to define colors in CSS?

Kuler

Adobe's Kuler Web application lets you choose a color palette and see each colors value in multiple formats, including HEX and RGB.

The short answer is RGB.

The slightly longer answer is that Hex values have become the de facto standard for use in CSS code and both developers and designers are used to them.

The long answer is that, in the final design on the screen, there is no difference between using Hex or RGB values in your code. Which system you use is really a matter of you own personal preference (and those of the team you are working with) as to whether or not you use Hex or RGB values to define colors.

Share and Enjoy
  • RSS
  • email
  • Twitthis
  • Facebook
  • LinkedIn
  • Posterous
  • Slashdot
  • Google Bookmarks

Random Thoughts

Discussion Area - Leave a Comment