Liu Hui
Liu Yan was the sixth generation descendant of Emperor Jing of the former (or Western) Han. He was the son of Liu Qin (), magistrate of Nandun county (). Liu Qin was the son of Liu Hui (), vice governor in charge of military affairs for Julu Commandery (). Liu Hui was the son of Liu Wai (), governor of Yulin Commandery (). Liu Wai was the son of Liu Mai (), known posthumously as Marquess Jie of Chongling (). Liu Mai was the son of Liu Fa (), known posthumously as Prince Ding of Changsha (). The prince of Changsha was a brother of Emperor Wu, a Han emperor, and he was the son of Emperor Jing.