extracting pen colours in hex
I want to take the colour from a range in custom chart and use it to set the backgroundColor of a cell in an HTML table.
tab1.rows.cells.style.backgroundColor = graph.getPenColor(1)
but it doesn't work, because the getPenColor returns the following
how do I either return a hex colour code, or convert this to a hex code?