ANSWER:
It is permissible to colour the hair with dyes that are medically safe and that don’t form a layer after washing but just gives colour, providing you avoid black color as it’s prohibited and also avoid any other weird colors like pink, purple etc.