diff --git a/manimlib/utils/color.py b/manimlib/utils/color.py index f6b18e2e..d35a40ce 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 Color(color).hex.upper() + return Color(color).get_hex_l().upper() def hex_to_int(rgb_hex: str) -> int: