The Scalar to colour/vector nodes convert the Input scalar into a colour or vector, respectively. This conversion happens according to the node input type conversion rules which are described here.