There isn’t such a simple answer to this question, but we do know for sure that the Prophet PBUH used to use a leaf-based dye (henna) to colour his beard when he started getting white hairs. It seems from the hadith evidence that while one can dye their hair a different colour, dying grey or white hair to a pure black colour is prohibited. So trend carefully when making your decision!