Either spelling is acceptable. Gray is more common in many parts of the United States, and grey is more common in the United Kingdom. Both are very popular spellings, and the rule with something like...
Well it depends on where you come from or what you prefer, because in America they spell it with an 'a' (gray) but in England the spell it with an 'e' (grey). So it's simply your own choice. : D here...