Not sure this is possible, but looking to write a script that would return the average hex or rgb value for an image. I know it can be done in AS
hex
rgb
I recently came across a jQuery plugin which does what I originally wanted https://github.com/briangonzalez/jquery.adaptive-backgrounds.js in regards to getting a dominiate color from an image.