Свойство element.style

let blueElement = document.getElementById('colorful-element');
blueElement.style.backgroundColor = 'blue';
Douglas Stemple