Former President Obama on Tuesday praised the graduate student who went viral for his rainbow turban celebrating Pride Month.

Obama told Jiwandeep Kohli, a clinical psychology graduate student and former contestant on “The Great American Baking Show,” that he had "a lot to be proud of."

“Thanks for everything you do to make this country a little more equal. Turban looks great, by the way,” the former president wrote.

ADVERTISEMENT

Kohli posted the original photo on Saturday, writing that he was proud of be a “bisexual bearded baking brain scientist.”

“I feel fortunate to be able to express all these aspects of my identity, and will continue to work toward ensuring the same freedom for others,” he wrote.

The post quickly went viral and was liked more than 40,000 times on Twitter.

Former President Clinton in 1999 became the first commander in chief to issue a proclamation marking June as Pride Month in honor of the 30th anniversary of the Stonewall uprising.

The tradition did not continue under Republican former President George W. Bush but Obama resumed the tradition during his presidency.

He also splashed the White House with rainbow-colored lights to celebrate the Supreme Court ruling legalizing same-sex marriage in 2015.

President Trump Donald John TrumpBiden on Trump's refusal to commit to peaceful transfer of power: 'What country are we in?' Romney: 'Unthinkable and unacceptable' to not commit to peaceful transition of power Two Louisville police officers shot amid Breonna Taylor grand jury protests MORE earlier this week formally recognized Pride Month for the first time since he took office.

The Trump administration has launched a public effort to end the criminalization of homosexuality worldwide, and the president has spoken about helping the LGBT community, but Trump has been repeatedly criticized for his record on LGBT rights, particularly in the wake of instituting a transgender military ban.