Answer:
Mama compares Walter to a rainbow after the rain because Walter's journey towards this realization about what to do with the insurance money has been stormy. Walter has fought with everyone in the family, including Mama, his wife Ruth, and his sister Beneatha, but in the end, he emerges as a proud and wise man.