If i defined a color in resources
#123456
it\'s possible
I don't think there is standard functionality for that. You can however turn the return in value from getColor() to hex and turn the hex value to string.
getColor()
hex 123456 = int 1193046;