Emperor Heizei
His paternal great grandparents were and Akazome Emon, Masahira himself being a grandson of . Koretoki was a son of and grandson of Ōe no Otondo. Otondo was a son of Prince Abo, who was a son of Emperor Heizei.