# How do you change the color of the annotators in Supervision?

**URL:** https://discuss.roboflow.com/t/how-do-you-change-the-color-of-the-annotators-in-supervision/3874
**Category:** ✋ FAQ
**Created:** [December 2, 2023, 12:27am UTC](https://discuss.roboflow.com/t/how-do-you-change-the-color-of-the-annotators-in-supervision/3874 "2023-12-02T00:27:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)
#### Post date: [December 2, 2023, 12:27am UTC](https://discuss.roboflow.com/t/how-do-you-change-the-color-of-the-annotators-in-supervision/3874/1 "2023-12-02T00:27:21Z")

</div>

In [Supervision](https://github.com/roboflow/supervision), is there a way to configure the color/colors the [annotator](https://supervision.roboflow.com/annotators/) uses?

Ex: how was this image set to only annotate purple bounding boxes?

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/9/9f03fde5b085f4c8b0bf599609de41a4badccb2c.jpeg)

---

<div class="post-metadata">

### Author: ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)
#### Post date: [December 2, 2023, 12:40am UTC](https://discuss.roboflow.com/t/how-do-you-change-the-color-of-the-annotators-in-supervision/3874/2 "2023-12-02T00:40:38Z")

</div>

You can change the color of most, if not all, Supervision annotators by specifying a `color` parameter and supplying a `supervision.Color` or `supervision.ColorPalette` object.

## Create a Color

You can create a `Color` by using the `from_hex` method like so:

```python
color = supervision.Color.from_hex("#fff") # For a white hex code

```

or from a RGB color:

```python
color = supervision.Color(0,0,0) # Equivilant to an RGB code of (0,0,0)

```

You can also create a `ColorPalette` using the `from_hex` method:

```python
color_palette = supervision.ColorPalette.from_hex(["#fff", "#000"])

```

or you can also create a `ColorPalette` by supplying a list of `Color` objects:

```python
# In this example, the supervision name is shortened to `sv` which you can do using `import supervision as sv`
color_palette = sv.ColorPalette([sv.Color(0,0,0), sv.Color(255,255,255)])

```

## Set the Color

For example, in the [`BoundingBoxAnnotator`](https://supervision.roboflow.com/annotators/#boundingboxannotator) (as seen in the example image), you can set the color property to purple like we showed previously:

```python
color = supervision.Color.from_hex("#9C66E9")
bounding_box_annotator = supervision.BoundingBoxAnnotator(color=color)

```
