You could do it when their name appears, open normal settings on your phone, tap on notifications, tap on pop up styles and then tap colour by keyword, then use their name and pick an colour, I haven't tested this but I hope it works
Sincererly
-AfastAssistant