import hashlib


def int_to_rgb(value: int) -> str:
    """
    Given an int value, return a RGB hex string for a unique color.

    This simplifies the colored graph drawing procedure by avoiding
    having to keep a finite hardcoded list of colors.
    """
    # Get a deterministic hash of value, so that small differences in
    # the input `value` create large hex color differences.
    hashed_val = hashlib.md5(value.to_bytes(8, byteorder='big', signed=True))
    value = int(hashed_val.hexdigest(), 16)

    r = 0xff - (value % 0xce)
    g = 0xff - (value % 0xdd)
    b = 0xff - (value % 0xec)

    return '#%02x%02x%02x' % (r, g, b)