# getUserColorWithOpacity

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

Get a CSS color string with opacity for a user

## Signature

```ts
function getUserColorWithOpacity(userId: string, opacity: number): string
```

## Parameters

| Name | Type |
|---|---|
| `userId` | `string` |
| `opacity` | `number` |

**Returns:** `string`
