def int_to_hex(value):
    """Converts an RRGGBB integer value to hex string like `"#ff6d04"`.

    Args:
        value: an integer value

    Returns:
        a hex string
    """
    r = (value >> 16) & 255
    g = (value >> 8) & 255
    b = value & 255
    return "#%02x%02x%02x" % (r, g, b)
Converts an RRGGBB integer value to hex string like `"#ff6d04"`.

    Args:
        value: an integer value

    Returns:
        a hex string
    
fiftyone/core/fields.py