It is best to wear white pants with a green shirt. But it does not mean white is the only choice. People can wear black pants or blue jeans, and these colors of pants match well with a green shirt.