RGB Led - mixing colors using analogWrite
Analog pins aren't PWM pins. Instead you have to use the pins marked with a ~

Pins that aren't PWM pins will be off with a value of 0-127 and on with a value between 128 and 255.