If I may be flippant for a moment, this advantage has certainly worked well for Raff and Amanda and badly for Rudy.
Seriously though, when I studied criminology as one of my psychology modules, there is more to it than superficial skin colour or designations between Hispanic-Latino and African American.
There is a whole cultural ball game there. Mexico and Puerto Rico are amongst the poorest countries in the world. Mexico is marijuana and cocaine rich, so straight away, there you have a ready criminal subset. The African-American culture goes right back to when they were mere chattels/livestock and with only 2/5 (IIRC) property rights. As law is the ruling classes telling the lower classes what they can or cannot do, it is no surprise it's the lower classes filling up the courtrooms, whilst the upper classes get off with a nod and a wink for their crimes.
In the UK, studies show, if a female defendant is found guilty of a serious crime, the more attractive she is, the harsher her sentence, as she has breached social moraes. Where you have a couple who go "kiting" (fraud), the male partner is invariably seen as the instigator and gets a harsher sentence than the female, seen to have been led astray by him, although there is no logical reason one should believe this.
The USA were putting away children under life without parole until recently. It has one of the worst death penalty sentencing in the world, second only to China.
When you have simplistic figures showing, say, blacks get harsher sentences than their compatriots, there are also factors such as previous convictions, how they come across in court, access to good quality counsel.
It is something you need to tackle at government level. It's not the judges, it is deep set social inequality that determines the laws. Judges apply the law.