with flying colors, pass with

Also, come through with flying colors. Win, succeed, as in She came through the bar exam with flying colors. This expression alludes to a victorious ship sailing with its flags high. [Late 1600s]

The American Heritage® Idioms Dictionary Copyright © 2002, 2001, 1995 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company.