I\'m trying to create a color opposite of current color. I mean if current color is black, then I need to generate white.
Actually I have a text
It is possible to convert a HEX color using the snippets
function invertColor(color) { return '#' + ("000000" + (0xFFFFFF ^ parseInt(color.substring(1),16)).toString(16)).slice(-6); }