Added case for when passing in rgb color rather then hex