A rainbow baby is a child born to a family that has previously lost one or more children due to stillbirth, miscarriage, ectopic pregnancy, termination for medical reasons, or death during infancy. The term "rainbow" is symbolic of the hope brought by the child after the emotional storm of the previous loss.