Jesus had claimed to be the light of the world. The Pharisees did not accept this claim thus indicating that they were walking in darkness. In the interaction between Jesus and the Pharisees in these verses, the contrast between the light and the darkness is observed.
Read John 8:19-30