The only division I have ever seen between the two spellings is geographic. It is "gray" in the US and "grey" in Britain.