Usually for regular off the shelf 3.5V leds on 12V 470 Ohm or as close as possible to that value are used.More than that and your led is dimmer and last longer vs.less than the value brighter but less life.(dont get me wrong there are limits lol)
There are calculators just for that purpose floating around on the site if you want the exact value, but the problem is that you rarely find the exact resistor the calculator tells you
And since i rarely plug leds on the 5Vline for the reason that your vital part of the system (cpu) is using it, and i dont want to stress it more than needed i really dont know the value of the res. for 5V