RgbColor

A color defined by red, green, blue color channels.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/base/rgb-color#asHexString()` | `String` | Returns the color as a CSS-style 7 character hexadecimal string (#rrggbb) or 9 character hexadecimal string (#aarrggbb). |
| `https://developers.google.com/apps-script/reference/base/rgb-color#getBlue()` | `Integer` | The blue channel of this color, as a number from 0 to 255. |
| `https://developers.google.com/apps-script/reference/base/rgb-color#getColorType()` | `https://developers.google.com/apps-script/reference/base/color-type` | Get the type of this color. |
| `https://developers.google.com/apps-script/reference/base/rgb-color#getGreen()` | `Integer` | The green channel of this color, as a number from 0 to 255. |
| `https://developers.google.com/apps-script/reference/base/rgb-color#getRed()` | `Integer` | The red channel of this color, as a number from 0 to 255. |

## Detailed documentation

### `asHexString()`

Returns the color as a CSS-style 7 character hexadecimal string (#rrggbb) or 9 character
hexadecimal string (#aarrggbb).

#### Return


`String` --- The hex representation of color.

*** ** * ** ***

### `getBlue()`

The blue channel of this color, as a number from 0 to 255.

#### Return


`Integer` --- The value of blue channel.

*** ** * ** ***

### `getColorType()`

Get the type of this color.

#### Return


`https://developers.google.com/apps-script/reference/base/color-type` --- The color type.

*** ** * ** ***

### `getGreen()`

The green channel of this color, as a number from 0 to 255.

#### Return


`Integer` --- The value of green channel.

*** ** * ** ***

### `getRed()`

The red channel of this color, as a number from 0 to 255.

#### Return


`Integer` --- The value of red channel.