Hospitals use a system of color-coded alerts to communicate emergencies quickly without causing panic among patients and visitors. Each code triggers a specific, rehearsed response from staff. While codes can vary slightly between hospitals, a widely adopted standardized set was established in 2000 by the Hospital Association of Southern California and has since been used as a model across the United States.
The Standard Hospital Color Codes
Here are the most commonly used codes and what they mean:
- Code Red: Fire
- Code Blue: Adult medical emergency (typically cardiac or respiratory arrest)
- Code White: Pediatric medical emergency
- Code Pink: Infant abduction
- Code Purple: Child abduction
- Code Yellow: Bomb threat
- Code Gray: Combative person with no weapon
- Code Silver: Person with a weapon, active shooter, or hostage situation
- Code Orange: Hazardous material spill or release
- Code Green: Patient elopement (a patient leaving the facility without being discharged)
- Code Triage Internal: A disaster inside the hospital
- Code Triage External: A disaster outside the hospital that will send a surge of patients in
Some hospitals add their own codes for situations like severe weather or mass casualty events. If you’re admitted to a hospital, the specific codes used there are usually posted in patient rooms or hallways.
What Happens During a Code Blue
Code Blue is the one most people have heard of, and it’s arguably the most urgent. It means a patient’s heart has stopped or they’ve stopped breathing. When a Code Blue is called, a dedicated team rushes to the patient’s room, and each person has a pre-assigned role: one does chest compressions, another manages the defibrillator, someone else establishes IV access, a pharmacist delivers medications, and a nurse places monitoring leads.
A designated code leader directs the entire effort, standing where everyone can see and hear them. Chest compressions happen at a rate of 100 to 120 per minute, compressing the chest between 2 and 2.4 inches deep. The person doing compressions rotates out every two minutes to avoid fatigue. If the heart is in a shockable rhythm, the defibrillator is used immediately, and compressions resume right after the shock. Teams rehearse these roles at the start of every shift so there’s no confusion when seconds matter.
Security Codes: Gray vs. Silver
Code Gray and Code Silver both involve a threatening person, but the distinction is critical. Code Gray means someone is combative but unarmed. Security staff respond to de-escalate the situation and protect nearby patients and workers. Code Silver is far more serious: it means someone has a weapon, or there’s an active shooter or hostage scenario. A Code Silver can trigger a full lockdown, with doors secured and staff following “run, hide, fight” protocols similar to what’s taught in other public settings.
Abduction Alerts: Pink and Purple
Code Pink is called when an infant goes missing or is suspected to have been taken. Code Purple serves the same function for older children. Both codes typically trigger an immediate lockdown of the unit and all exits. Staff are trained to watch for anyone carrying a baby or child who doesn’t match what’s expected, and security monitors all entry and exit points until the child is located. Hospitals with maternity and pediatric wards run drills on these codes regularly.
Hazardous Materials: Code Orange
A Code Orange signals a chemical spill or hazardous material release somewhere in the facility. The first priority is securing the area and keeping everyone at least 500 feet away from a significant spill. A safety officer takes control of the scene and determines whether the hospital’s own staff can handle cleanup or whether an outside hazmat team needs to be called. If patients are affected, the chief medical officer is notified. Depending on the scale, a Code Orange can escalate into broader disaster procedures.
Bomb Threats: Code Yellow
When a bomb threat is received, the hospital typically calls a Code Yellow. Police and hospital administrators decide together whether to search the building, evacuate, or both. If evacuation is ordered, it moves in stages: first laterally (moving people on the same floor away from the threat), then vertically to other floors, and finally to other buildings if necessary. The announcement is repeated three times over the intercom, and the evacuated area is sealed off. No one searches without explicit authorization, and if a suspicious object is found, the standard instruction is to call 911 and not touch it.
Disaster Codes: Triage Internal and External
Code Triage Internal covers emergencies that originate inside the hospital, such as a structural failure, power outage, or flooding that disrupts operations. Code Triage External is activated when something outside the hospital, like a mass casualty event or natural disaster, is expected to overwhelm the emergency department with incoming patients. In both cases, the hospital shifts into a crisis mode that reallocates staff, opens extra beds, and may cancel elective procedures to free up resources.
Condition H: A Code Patients Can Call
Most codes are initiated by hospital staff, but some hospitals offer something called Condition H (for “Help”). This allows patients or their family members to call a rapid response team directly if they feel something is seriously wrong and their concerns aren’t being addressed by the care team. First implemented at the University of Pittsburgh Medical Center, Condition H gives patients a phone number they can call from their room to bring a specialized team to their bedside. Not every hospital offers this, but the ones that do typically explain it during admission.
The Shift Toward Plain Language
One ongoing challenge with color codes is that they aren’t fully standardized nationwide. A Code Black might mean a bomb threat at one hospital and something entirely different at another. This has led to a growing push, backed by the federal Administration for Strategic Preparedness and Response, to replace color codes with plain language alerts. Instead of announcing “Code Silver,” for instance, a hospital would announce “Active shooter, second floor, east wing.” The goal is to eliminate confusion, especially for staff who work at multiple facilities or for temporary workers unfamiliar with a particular hospital’s system. Many hospitals are now in transition, using both color codes and plain language descriptions together.

