> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd-functions-less-than-greater-than-luadoc-begin-lcd/rgb.md).

# lcd.RGB(r, g, b)

Returns a 5/6/5 rgb color code, that can be used with lcd.setColor

@status current Introduced in 2.2.0

## Parameters

* `r` (integer) a number between 0x00 and 0xff that expresses te amount of red in the color
* `g` (integer) a number between 0x00 and 0xff that expresses te amount of green in the color
* `b` (integer) a number between 0x00 and 0xff that expresses te amount of blue in the color

## Return value

* `number` (integer) rgb color expressed in 5/6/5 format

### Notice

Only available on Colorlcd radios
