A crystal embodies the Jedi as the heart of the lightsaber, and pure kyber has no color until it's bonded to the Force user. This process likely resulted in Rey Skywalker's lightsaber being yellow.