Replaces an rgb(), hsl(), or another color function with an equivalent hexadecimal notation.