Hospitals use a system of color-coded announcements to alert staff to emergencies without causing panic among patients and visitors. The most common codes cover cardiac arrest, fires, security threats, and missing infants. While the specific meanings can vary between hospitals, several codes are widely recognized across the United States.
The Most Common Hospital Codes
Four codes appear in nearly every U.S. hospital:
- Code Blue: An adult patient’s heart has stopped or they’ve stopped breathing. This is the most frequently called code in most hospitals.
- Code Red: A fire has been detected somewhere in the building.
- Code Pink: An infant has been abducted or is missing from a unit.
- Code Purple: A child has been abducted or is missing.
Beyond these four, hospitals layer on additional codes for security events, severe weather, hazardous spills, and mass casualty situations. The problem is that once you move past the core codes, definitions start to diverge from one hospital to the next.
What Happens During a Code Blue
A Code Blue means someone is in cardiac or respiratory arrest, and it triggers one of the fastest team responses in a hospital. Within seconds of the announcement, a dedicated code blue team rushes to the patient’s location. That team typically includes doctors, nurses, respiratory therapists, and sometimes a pharmacist.
The immediate priority is keeping blood flowing to the brain and vital organs. Team members begin chest compressions, open the patient’s airway by placing a breathing tube, and connect the patient to a ventilator or manual breathing bag. If the heart is in an abnormal rhythm, a defibrillator delivers an electrical shock to reset it. (Contrary to what TV shows suggest, a defibrillator corrects a disordered rhythm; it doesn’t restart a heart that has completely flatlined.) Medications are also given to support circulation to the heart and brain.
Any hospital employee trained in resuscitation who happens to be nearby is generally expected to respond, not just the designated team. Speed is the single biggest factor in survival.
Security and Threat Codes
Two codes deal with violent or potentially violent situations, and they’re easy to confuse:
- Code Gray: A combative person without a weapon. This could be an agitated patient, a visitor who becomes aggressive, or someone who poses a physical threat to staff.
- Code Silver: A combative person who has a weapon. This triggers a much more serious lockdown response and may involve law enforcement.
The distinction matters because the response is completely different. A Code Gray typically brings hospital security and trained de-escalation staff. A Code Silver may mean barricading doors, sheltering in place, and evacuating patients from the affected area.
How Code Pink Locks Down a Hospital
When a Code Pink is called for a missing infant, the response is immediate and sweeping. Staff members are assigned to cover every exit, stairwell, and lobby in the building. Anyone trying to leave with an infant is stopped and asked to wait until they can be cleared by security. Adults carrying bags large enough to conceal an infant are asked to open them for inspection. If someone refuses to stop or cooperate, staff note their physical description and call security immediately.
Hospitals also use preventive measures around the clock. Most facilities attach electronic transmitters to newborns’ ankles that trigger alarms at exits. Units that house newborns maintain continuous surveillance of their entrances. These systems are designed so that a Code Pink ideally never needs to be called in the first place.
Code Black and Internal Emergencies
Code Black generally signals that a hospital’s emergency department has been forced to close due to an internal crisis. This can be triggered by fires, explosions, hazardous material spills, flooding, power failures, bomb threats, or violent incidents that make the emergency department unsafe or unusable. When a Code Black is declared, ambulances are diverted to other hospitals and walk-in patients are redirected.
Some hospitals use Code Black specifically for bomb threats, while others use it for the broader category of any event that shuts down normal operations. This is one of the codes where meaning varies most from facility to facility.
Why Codes Aren’t the Same Everywhere
One of the biggest problems with hospital color codes is that there’s no single national standard. A Code Orange might mean a hazardous material spill at one hospital and a mass casualty event at another. Code Yellow could signal a missing patient or a bomb threat depending on where you are. This creates real confusion for healthcare workers who move between facilities, travel nurses, or emergency responders arriving from outside.
A military health system study that tested standardized announcements across 10 facilities found wide variance in what color codes meant from one location to the next. The researchers noted that the biggest obstacle to fixing the problem was the deeply ingrained belief among staff that color codes were the only workable approach.
The Shift Toward Plain Language
Many hospitals are now moving away from color codes entirely and switching to plain language announcements. Instead of “Code Silver, third floor,” staff hear “Active threat, third floor.” The logic is straightforward: plain language requires no memorization, no badge reference cards, and no guessing. It also communicates clearly to patients, visitors, and contractors who were never trained on the codes in the first place.
This transition isn’t happening overnight. Hospitals that have piloted the change developed script cards for announcements, training courses, posters, and badge reference guides to help staff adjust. The cultural shift has proven harder than the logistical one. Staff who have spent years responding to color codes need time to rewire their instincts, and gaining administrative approval for the change can be slow.
At the same time, some hospitals are reducing overhead announcements altogether. Overhead paging is one of the biggest contributors to hospital noise, and research on labor and delivery units has shown that replacing loudspeaker pages with smartphone-based alerts can meaningfully reduce disruptive sound levels. For non-urgent codes, a push notification to the right team may replace the building-wide announcement entirely. For true emergencies like a Code Blue or Code Silver, overhead alerts remain the fastest way to mobilize a response across the entire facility.

