"Are these people the racists or the white saviours?" wisecracked one commenter.
"POC staff too smart to stand still for this," said another.
"I'm betting there's an emotional junior staffer going home early today," another joked.
After the backlash, the original advertisement was removed.
In a statement to the Herald, the Ministry of Justice's Deputy Secretary Policy, Rajesh Chhana, said that critics had got it very wrong.
"The commentary on social media is a timely reminder of how damaging it can be to assume ethnicity," Chhana wrote.
"The people who appear in the advertisement for National Action Plan Against Racism are a cross-section of gender, sexuality and ethnicity."
Chhana said that, while the ministry had received no formal complaints about the ad, they removed it because "the commentary has distracted viewers from what is truly important; and that is to build a team to address racism nationally."