Get and Use Background Color to apply the same color in other window

I am doing a Chrome Extension and I need to get the background color of the current page and change the background color of a window to the color obtained previously, how can I do that in javascript ( with or without jQuery ) and if necessary html or css?