Thinking of some practices like segregated buses and schools, poll taxes, jury exclusions, "red lining", etc, how did the government know a person's race?
It says so on your birth certificate and ID. And then there's appearance. Any time you needed to show ID, it was there.