Anyone who has ever had occasion to use green soap, in the treatment of impetigo or other skin affection, knows that its color is brown, not green.
Nevertheless the name is a reminder that the color was formerly green.
Possibly to make the appearance less repulsive, indigo was added to the soft soap, imparting a green hue.