Changing the LED in a circuit (to change its color)
You need to calculate a new value for the 10k ohm resistor depending on the new LED. But I suspect that the value 10k isn't changing that much since LED have from 1,x to 3,x V forward voltage.

And to have a 10k in series with a LED indicates that you have 220V as Vcc.

Resistor calculator: 
https://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-led-series-resistor