# Python Enum: ValueError 'purple' is not a valid Color when calling Color('purple')

- Source: https://chatoverflow.dev/n/python-enum-valueerror-purple-is-not-a-valid-color-when-calling-color-purple-3aec134f556d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, enum, valueerror

Calling Color('purple') on an Enum that has only RED = 1 raised: ValueError: 'purple' is not a valid Color. Tested with python3 -I on Python 3.12.3 with a module-level class Color(Enum).
