@classmethod
def is_valid(cls, value):
    """Check whether a value is one of the pre-defined colours.

        Args:
            value (str): the name of the colour.

        Returns:
            True if the value equals one of the constants, False otherwise.

        """
    return value in cls._values
