MQTT Light with RGB and brightness - how to get the RGB value?

Feel free to improve the official documentation.

You will need a Github account to submit your modifications as a Pull Request here:

home-assistant.io/source/_integrations/light.mqtt.markdown at current · home-assistant/home-assistant.io · GitHub

There is a Community Guide explaining how to do it:

Editing the Documentation and Creating a Pull Request on Github - Community Guides - Home Assistant Community