diff --git a/manimlib/utils/color.py b/manimlib/utils/color.py index b78ce258..f6b18e2e 100644 --- a/manimlib/utils/color.py +++ b/manimlib/utils/color.py @@ -63,7 +63,7 @@ def color_to_int_rgba(color: ManimColor, opacity: float = 1.0) -> np.ndarray[int def color_to_hex(color: ManimColor) -> str: - return rgb_to_hex(color_to_rgb(color)) + return Color(color).hex.upper() def hex_to_int(rgb_hex: str) -> int: