def is_rgb_target(target):
    """Determines whether the provided target is an RGB string.

    Args:
        target: an integer or RGB hex string

    Returns:
        True/False
    """
    return (
        isinstance(target, str)
        and re.search(r"^#(?:[0-9a-fA-F]{6})$", target) is not None
    )
Determines whether the provided target is an RGB string.

    Args:
        target: an integer or RGB hex string

    Returns:
        True/False
    
fiftyone/core/fields.py