Yes. The word is “Neger”, and up until very recently, that was the common term for people with darker skin tone, as “afro american” doesn’t really make sense outside of america. It was used up until maybe 2000ish in a similar way to how “negro” was used in the US in the 40s and 50s (and probably later), but more broadly.
It was later replaced by “African”, which doesn’t really work, as the old term could mean more than just people of african heritage.
I’m not entirely sure what’s the appropriate term is today - it’s not like i need to refer to peoples heritage through their skin tone a whole lot.
EDIT: I just remembered from when I was a kid my aunt (who married a guy from Ghana) referring to him as “neger” some time in the 90s, so it was at least at that point in time not considered offensive.
Noted, thank you. Editing the original post accordingly.