An electrical connector is provided for mating with a mating connector. The electrical connector includes a housing and an electrical contact held by the housing. The housing has a mating end that faces the mating connector when the electrical connector is mated with the mating connector. The housing includes a body having a retaining flange. A locking collar is movably mounted on the body of the housing. The locking collar includes a locking element and an inwardly directed shoulder having an opening extending therethrough. The locking element is configured to engage the mating connector to lock the electrical connector to the mating connector. The shoulder engages the retaining flange of the body when the locking collar is fully engaged with the mating connector. The retaining flange of the body is configured to engage the locking element of the locking collar to retain the locking collar on the body of the housing.