hex color in style tag code example
Example: javascript set color in hex
element = document.querySelector("div");
element.style.backgroundColor = "#242424";
element = document.querySelector("div");
element.style.backgroundColor = "#242424";