Javascript color code example
Example 1: javascript context color
context.fillStyle = "Green";
context.fillStyle = "#FF0000";
Example 2: js element text color
element.style.color = '#f0f';
Example 3: javascript change color
var span = document.getElementsByTagName("span")[0];
span.style.color = "red";