Are oranges on the tree ripe when they change color?

It depends on the variety. Most oranges are not completely ripe when they lose their green tinge. A little further maturing on the tree is needed to enable the sweetness to develop.