The name 'Color.green' does not denote a valid type ('not found')

var color1 : Color.green;
var color2 : Color.green;
var color3 : Color.red;
var color4 : Color.red;

This is the part of the bigger code that I am making ,but I am having a problem with these lines ,whats the problem with this error?

Color.green is the value, Color is the type.

var color1 : Color = Color.green;

etc.