I’m overwhelming white ancestry but with some remnant traces of melanated ancestry (> 1%) and I tan very easily. I’ve been mistaken for hispanic or Black before during the summer. My mom is much darker than me.
We both get sunburns. My even darker grandmother got sunburns. My Black friends get sunburns. I am not sure that you are correctly correlating your experience with actual facts about the sunburn resistance offered by melanin.