converts all sorts of colors to rgb format