This mod allows you set custom portrait colors for hitpoints and the border of a selected character by binary patching the game executable file.
Before installing edit the infinitycolors.ini file.
You can use a color picker to choose colors.
Don't forget to convert them from #RRGGBB to 0xBBGGRR.
For example, let's say you picked #bc6c04 (brown), you will need to change it to 0x046cbc.