---
url: /cube-functions/colorinvert.md
description: Inverts a color.
---

# COLORINVERT&#x20;

Inverts a color.

```js
COLORINVERT(color)
```

#### Parameters

* `color` - Hex, rgb(), or rgba() value for the color to invert.

#### Examples

```js
COLORINVERT("#FF0000")
```

**Result:** `rgba(0, 255, 255, 1.0000)`

**Note:** This will return the inverted color of the original red color.
