var hue = 'rgb(' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ',' + (Math.floor(Math.random() * 256)) + ')';
Then add this hue to your color
jQuery(".font-style").animate({color: hue}, 2000). animate({color: hue}, 2000).animate({color: hue}, 2000);}, 400);
JSFIDDLE DEMO for RANDOM color for tag
source share