## Syntax

`=RED(color)`

## Arguments

ArgumentTypeDescription
colorColorThe color

## Examples

`=RED("#0000ff")`β†’`0` Gets the red channel for the color represented by the hex color code #0000ff (blue)

`=RED(RGB(128, 0, 0))`β†’`128` Gets the red channel for a color having a value of 128 for red, 0 for green, and 0 for blue (dark red)

`=RED(0)`β†’`#ERROR!` Attempts to get the red channel from an integer, which is invalid because it cannot be converted to a color