If you have enough gold to buy a goblin, but the button is still grey:

It means that you've probably exceeded your goblin limit:

Merge the existing goblins, and you'll be able to buy new ones! Note that unopened goblin barrels are counted in the limit, too.