var color = document.querySelector('.color') var style = getComputedStyle(color) console.log(style.backgroundColor)