# generateUserColor

**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#L66)

Generate a consistent color for a user based on their userId
The same userId will always return the same color

## Signature

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

## Parameters

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

**Returns:** `string`
