Lightsaber crystals cannot change color after they have been placed inside the lightsaber itself. The lightsaber could potentially be made to change colors by adding a coloring crystal to the focusing assembly. This would also explain how Anakin managed to change the color of Ahsoka’s lightsabers in Season 7 of Star Wars: The Clone Wars.