flying colors, come off with

flying colors, come off with

To succeed; to win. This term, which alludes to the victorious battleship sailing with flags high, dates from the late seventeenth century. “It may . . . bring a man off with flying colours,” wrote philosopher John Locke (A Letter Concerning Toleration, 1692).
See also: come, flying, off