 E. coli stains gram @-@ negative because its cell wall is composed of a thin peptidoglycan layer and an outer membrane . During the staining process , E. coli picks up the color of the counterstain safranin and stains pink . The outer membrane surrounding the cell wall provides a barrier to certain antibiotics such that E. coli is not damaged by penicillin . 
