# Convert colors between colorspaces

R · 2.1.0

[Source](<https://github.com/jolars/qualpalr/blob/7fd73fd3b3ee455008662f41db71da21244bc5d7/R/convert_colors.R>)

```r
convert_colors(colors, from, to)
```

<a id="convert-colors-between-colorspaces"></a>

## Convert colors between colorspaces

Convert colors between colorspaces


<a id="usage"></a>

## Usage

```r
convert_colors(colors, from, to)
```

<a id="arguments"></a>

## Arguments

`colors`

A matrix of colors

`from`

The colorspace of the input colors, one of "rgb", "hsl",
"din99d", "lab", "xyz"

`to`

The colorspace of the output colors,
one of "rgb", "hsl", "lab", "xyz"

<a id="value"></a>

## Value

The colors converted to the new colorspace
