Green around the gills

Where does "grey around the gills" come from, and what's it's meaning?

It's usually "green around the gills". "You're looking a little green around the gills" is often said when someone looks as if they might throw up or faint.