Jesus Delgado and Cesar Beccera entered no contest pleas Wednesday to misdemeanor charges over an incident in Half Moon Bay in December.
Prosecutors say the 18-year-old Delgado and the 20-year-old Beccera are known gang members.
They were accused of threatening the electricians because the red company shirts they wore while working at a McDonald's restaurant resembled the colors of a rival gang.