# generateUserColor

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/collaboration/utils/color.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/collaboration/utils/color.ts#L29)

Generates a consistent color for a user based on their ID
Uses a hash function to ensure the same user always gets the same color

## Signature

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

## Parameters

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

**Returns:** `string`
