# getUserColor

**Kind:** Function

**Source:** [`atloria-monorepo/apps/web/src/lib/user-colors.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/web/src/lib/user-colors.ts#L83)

Get a consistent color for a user with memoization
This is more efficient when the same userId is requested multiple times

## Signature

```ts
function getUserColor(userId: string): string
```

## Parameters

| Name | Type |
|---|---|
| `userId` | `string` |

**Returns:** `string`
