Same colors transfer, e.g., purple to purple, gold to gold, blue to blue. So, any purple hero will transfer to Lancelot provided the hero is higher in level.