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

# Colors

## `mixColor()`

Identical to `interpolateColor()` but with an animation value that goes from 0 to 1.

```typescript
const backgroundColor = useDerivedValue(() =>  
  mixColor(progress.value, "#ff3884", "#38ffb3")
);
```

## `colorForBackground()`

Returns black or white depending on the value of the background color.
