HbA1c, also known as glycated hemoglobin, is produced when glucose in the blood sticks to hemoglobin, a protein within red blood cells required for the transportation of oxygen. As a rule, the more glucose in the blood, the more HbA1c is produced.