Nextion Colour Codes

Hello everyone,

A quick (and what seems rather daft question).

What format are the colour codes in the nextion editor? for values such as the bco or pco? I've tried to look it up everywhere but struggling.

I need to set the background colour of certain components dynamically frommy Arduino and in my code i generate R, G & B values. How do can i convert them to whatever format Nextion uses?

Hello reptileelectronics

It tells you in the Nextion instructions on ITEAD’s web site Instruction Set - Nextion

Scroll down to 5 – Color Code Constants
Colours are 16 bit RGB - 565.