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