The idiom ‘with flying colors’ indicates when someone has or will perform exceptionally well. This is used especially for one's performance in a competition or examination. For example: ‘Samatha did exceptionally well in her exams and cleared them with flying colors.’ ‘Congratulations! You finished your apprenticeship with passing colors.’