Orange Is the New Yellow

"Orange Is the New Yellow" is the 22nd episode of season 27 and it aired on May 22, 2016. It's the season finale.

Plot
Homer was leaving the Power Plant on Thursday and received a phone call from Marge, promising her to come home for dinner, however he is stopped by Mr. Burns asking him to fix a gas leak by covering it up with a "safety first" poster. However, Homer gets delayed by Mr. Burns requiring its level to be measured with a (procedure that takes three hours to complete).

At home, Marge has trouble with the kids, and when Lisa asks for her help dressing her as a male seahorse while feeding Maggie. Maggie spills her food all over. Bart offers to clean up, but combines chemical products creating a hole in the floor. Marge sends him to play outside while she cleans the mess, and Bart goes to Springfield Park, where Martin Prince's mother notices he is unattended and calls the police. Taking Bart back home, Police Chief Wiggum arrests Marge for leaving him alone outside.

At trial, after trying to convince the judge -- with the added consequence of her own aged mother being arrested also for having done the same thing when her now middle-aged daughters were kids -- Marge is sentenced to ninety days at the Springfield Women's Prison. In jail she realizes that she can have time for herself away from the chaotic home. Meanwhile, Homer is helped by Ned Flanders and other neighbors to deal with being alone dealing with the kids. In prison, Marge fits in well, uses her hair to fight against bullies and attends flowers in the garden, and being happy there, she refuses to be set free when the Blue-Haired Lawyer finds a loophole to get her out. She fires a guard's gun and gets sentenced to two more months in jail.

Parents become over-solicitous after what happened to Marge. Homer, taking things even further, starts walking his kids on a leash. Having had enough of their attitude, the kids decide to break from Homer's care and go to the park, where they end up finding themselves in trouble when a tornado forms. In prison, Marge inadvertently starts a prison break. Amid the chaos, Homer, undercover as a prison guard, helps her escape to safety, her hair ricocheting a warning shot from a guard to stop her. Back home, Marge can't get away from Bart and Lisa becoming overly attached to her and the whole family ends up hugging inside the closet.