Possible Duplicate:
Are there any good reasons for using hex over decimal for RGB colour values in CSS?
Should one use RGB or HEX for colors in CSS style sheets?
If one is favored more than the other, why?
Is there a difference for future proofing, speed of processing, better compatibility between platforms/browsers etc
I believe that it is mostly a matter of personal taste whether you should use RGB or HEX. Personally I use HEX, because it feels more convenient – it is easier to scan when reading the code and easier to copy from your preferred image editor. Also for colors like white (#fff), black (#000) it could save you a few bytes (not that it would make much difference though).
In the end it is really just two different representations of the same thing, and from a performance perspective I don’t think it matters. At least there are loads of other things you can do to increase performance, that will have a greater impact on performance.