> For the complete documentation index, see [llms.txt](https://dbd-ts.gitbook.io/dbdts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dbd-ts.gitbook.io/dbdts/functions/color.md).

# $color

Sets the embed's border color.

### Usage

```php
$color[index;colorHex]
```

This function has two params.

| Param    | Description                                       | Type    | Required |
| -------- | ------------------------------------------------- | ------- | -------- |
| index    | The embed index that this color should belong to. | integer | yes      |
| colorHex | The color hex of this embed color.                | string  | yes      |

{% hint style="success" %}
Find color hexes [here](https://htmlcolorcodes.com/color-picker)!
{% endhint %}

### Example

```javascript
bot.commands.add({
    type: "command",
    name: "example",
    code: `$description[1;Hello World!]
    $color[1;ff57e0]`
})
```
