RGB / RGBA

Creates a new color from the specified red, green, blue and alpha values.

Syntax

=RGB(red, green, blue)

=RGBA(red, green, blue, alpha)

Arguments

ArgumentTypeDescription
redNumberThe red value, from 0 to 255
greenNumberThe green value, from 0 to 255
blueNumberThe blue value, from 0 to 255
alphaNumber(Optional) The alpha value, a decimal value from 0 to 1

Examples

=RGBA(0, 255, 0, 0.5)#00ff007f

=RGBA(0, 128, 0, 1)#008000ff