If you have access to JQuery, then extending to Praveen's answer one can programatically change color of different nested elements inside SVG by:
$('svg').find('path, text').css('fill', '#ffffff');
Within find, you can mention different elements that needs to be changed in color.