If you look for racism, you will probably find it.

Let's consider science fiction:

If your black characters act like white characters, they're tokens, and you're a racist.

If your black characters act like black characters, they're stereotypes, and you're a racist.

If your black characters are in the forefront, you don't consider them capable of command, and you're a racist.

If your black characters are in command (Nick Fury, forex), then you don't have them in the forefront, and you're a racist.

If your black characters are good, they're shallow, and you're a racist.

If your black characters are villains, they're caricatures, and you're a racist.

If your black characters sacrifice themselves for the white characters (Phantom Menace, even though they weren't actually black, and Revenge of the Sith), they're throwaways and you're a racist.

If your black characters are saved by white characters, they're incompetent, and you're a racist.

If your black characters are kept safe, we're back to them being tokens, and you're racist.

If you decide not to mention race and let people draw their own conclusions about the characters, you're passive-aggressive on the subject, and a racist.

If you have a future where people have given up racial issues and interbred all genetic lines, then you've destroyed black race and culture, and you're a racist.

If you don't have Africa ascendant at some point in the future, because you believe environmental and political issues won't support that in your given timeframe, you're a racist.

If Africa is ascendant in your work, but contemporary mores would find your culture offensive, you're fabricating false perceptions and you're a racist.

If your future Africans choose a development that makes them too western, you're provincial and a racist.

If your black characters are conservative and successful, they had to sell out to have a place in your universe, and it's a racist culture.  You're also a racist.

If you observe that Americans are predominantly white, the SF readership are predominantly white, and white writers don't get much reader attention from the black community, you're a racist.

If you decide all this is too complicated and don't use any black characters, you're definitely a racist.

The above only applies to a white writer.  A black writer can use their characters any way they wish.  If you complain about them overdeveloping black characters over their white characters, you're a racist.

A non-white, non-black writer writing about black characters gets a partial pass, if the liberal establishment likes their political position.  It's entirely possible for an other minority writer to be racist.

If you try to analyze perceptions in order to make a better presentation of black characters, and discuss those issues online, you're a racist.