convert rgb 2 hex, unless it's already hex