That yellow pencil is hers.或者The pencil which is yellow over there is hers.
that yellow pencil is her.
that yellow pencil is hers