JavaScript setze Farbe in Hex

element = document.querySelector("div");
element.style.backgroundColor = "#242424";
Glamorous Gull