The issue you are having is you are not changing the background colour.
You are changing the hue.
What you can do is change the filter which has the hue attribute inside of the element also. You may find a cross browser way but tested in my Safari, Chrome and FF.
element.style.backgroundColor = malen.style.backgroundColor;
element.style.filter = malen.style.filter;