The hair color does not change when they grow back after a transplant. If hairs are black they remain black.
The color of your hair after a transplant will follow your pattern as if you had not had a transplant. So if your hair was going to become gray at some point, that will still occur. Hair transplants have not been shown to affect hair color.