משנה ברורה · סימן תקפא, ס״ק כה
מְכַבְּסִין וּמִסְתַּפְּרִין בְּעֶרֶב רֹאשׁ הַשָּׁנָה - לְהַרְאוֹת שֶׁאָנוּ בְּטוּחִין בְּחַסְדּוֹ ית׳ שֶׁיּוֹצִיא לְצֶדֶק מִשְׁפָּטֵינוּ. ומ״מ לֹא יִלְבַּשׁ בר״ה בִּגְדֵי רִקְמָה וּמֶשִׁי כְּבִשְׁאָר יו״ט דִּיהֵא מוֹרָא הַדִּין אֶלָּא יִלְבַּשׁ בְּגָדִים לְבָנִים נָאִים [ט״ז בְּשֵׁם רש״ל] וְעַיֵּין במ״א סִימָן תקצ״ז דְּבִמְקוֹם שֶׁאֵין נוֹהֲגִין לִלְבּוֹשׁ לְבָנִים עכ״פ לֹא יִלְבַּשׁ חֲשׁוּבִים כ״כ:
Mishnah Berurah · 581:25
To show that we trust in His kindness to bring our judgment out in our favor, yet with the fear of judgment
“We wash our clothes and cut our hair on Erev Rosh Hashanah”: to show that we trust in His kindness, that He will bring our judgment out in our favor. Even so, on Rosh Hashanah one should not wear embroidered or silk garments as on other Yamim Tovim, so that there will be fear of the judgment; rather, he should wear fine white garments (Taz, in the name of the Maharshal). And see the Magen Avraham, siman 597, that where it is not the custom to wear white, at least he should not wear such distinguished clothes.