def is_valid_hex(value):
    """Boolean indicating of the value is a valid hex value."""
    if not value:
        return False

    regex = re.compile(HEX_COLOR_REGEX)
    return bool(regex.match(value))
Boolean indicating of the value is a valid hex value.