Ok so i finally figured it out. This is what I did
Made a function called mycolor in JS, which will run after 2 seconds when i click the button.
So after clicking it gets the value of the color from the div).
And then sets the color to the bell accordingly.
It works perfect