I'll just echo everyone's advice. This is a good place to learn or reinforce how to implement Ohm's Law.
V = IR
Voltage across the resistor is equal to Vsource (voltage of however you drive it) minus Vled (Usually listed a Vf in LED specs). You will also need If for the LED, the current required to turn it on.
Using Ohm's:
R = (Vsource - Vled) / Iled
Now, it will be important to also make sure the resistor you want to use is rated properly for the power.
P = IV = (Vsource - Vled) * Iled
If this comes out 0.5W and you try to put a 1/4 W resistor in there, you will make a nice charred resistor.
Edit: Jon must have pushed post just after I started typing...