I\'m trying to write a JavaScript tool to work on items of a certain colour. On a test page, I set the colour using an inline style, to mimic the target pages, but when the
You are probably looking at the value through firebug, which translates all colors to RGB form in the console. This does not mean it changed in the DOM.
This is not a conversion, it's just a different way of expressing the same thing. If you want to check for a particular colour, you will have to first express it in rgb format, then do the check. As far as I am aware, the css value returned for a DOM element is whatever it is - you cannot change the format.
Check out this script to convert rgb() notation to hex.