rgb
converts all sorts of colors to rgb format
basic usage
var color = //'rgb(191,170,64)' //'rgb(0,0,0)' //'rgba(191,170,64,0.5)' //'rgb(128,0,0)' //'rgba(255,51,0,0.2)'
matches
var color = color //true
replace
var color = color //'the color is rgba(255,51,0,0.2)' color //'the color is rgba(255,51,0,0.2)'