It's usually 'grey', not green'.
It's a way of saying that we are unable to judge things by their appearance when it is dark. It is sometimes used by people whose partner does not look attractive. It is a way of suggesting that you can't tell an ugly person from an attractive one when you are in bed with them (in the dark).
Interested in Language