colour picker widget

How can I make colour picker widget that is connected to colour of light