This is a way to improve contrast in the microscopic image. Stains and dyes are often used in biology and medicine to highlight structures in biological tissues, often with the aid of different microscopes.
Staining can be done on living tissues (in vivo) or on dead tissues (in vitro).
Dead tissue needs to be "fixed" so it does not decay. The fixative keeps the structure as it is. After fixation a tissue may be cut into thin slices, and put on a series of glass microscope slides. Occasionally, it is necessary to dissolve cell membranes so large dye molecules can get into the cells. Standards are published in the Biotechnic & Histochemistry journal.
The simplest way is to dip the slide plus specimen into a solution of dye, then rinse it and examine. The stains used are certified stains, tested by the Biological Stain Commission.
Gram staining is used to classify bacteria. It is based on the composition of their cell wall. Gram staining uses crystal violet to stain cell walls, iodine as a mordant, and a counterstain which marks all bacteria.
On most Gram-stained preparations, Gram-negative organisms are red or pink from the counterstain.
Haematoxylin and eosin staining is often used in histology for thin sections of tissue. Haematoxylin stains cell nuclei blue, while eosin stains cytoplasm, connective tissue and other extracellular substances pink or red.
Eosin is strongly absorbed by red blood cells, colouring them bright red. In a skilfully made H & E preparation the red blood cells are almost orange, and collagen and cytoplasm (especially muscle) go different shades of pink. Hematoxylin stains the cell nucleus and other acidic structures (such as RNA-rich portions of the cytoplasm and the matrix of hyaline cartilage) blue. In contrast, eosin stains the cytoplasm and collagen pink.