• Given a role name, return a color code for it. This works by computing a hash code so the specific color returned is not specified explicitly, but will be the same for every call with the same input value.

    Parameters

    • str: string

    Returns undefined | string