Colour to String

Colour::toString() and Colour::fromString() .is not working out for me .

Colour ss = Colours::red;
String temp = ss.toString();
Colour st;

The RGB value of the colour st obtained is all 0 and the not the proper values . Can anyone help me out

fromString() is a static method - it returns a colour.