If you are KML user and you have to use KML defined color in html elements you need to use this.
function hex2rgb(value) {
var color = "#" + value.substring(6, 8) + value.substring(4, 6) + value.substring(2, 4);
return color;
}
var colour = hex2rgb("99FF11AA");
$(function() {
$("#output").css("backgroundColor",colour);
});


