Tricolor ED light contrast
How to change the contrast of the LED How to calculate the Resistor values needed to change the contrast
Arduino Arduino-with-Tricolor-LED-and-Push-button 06-07 min 20-30 sec
Answers:
You are correct about changing the resistor values and thus limiting the current for reducing the brightness. Regarding selecting resistor, refer this previous question - https://forums.spoken-tutorial.org/question/1861/resistor-value-in-the-circuit/