#f700e2
or something similar (a hex color code)
How do I use javascript to get the red part (f7), the green part (00) and the blue part (e2) as hexadecimal values?
I tried
Code: Select all
var redhex = 0xhexstring.substr(1,2) //Thought it would give 0xf7Cheers