Here "darkness" refers to their condition as sinful people who did not know God, and "light" refers to their condition as people who do know God and practice righteousness. Alternate translation: "from a life of sin and ignorance of God to a life of knowing and pleasing him".