Combine a Switch with the Lamp Feature and you can change the color according to the designated state (ON/OFF).
10.11.1 Procedure - Creating a Color-Changing Switch