hpwm is set and forget
the only limitations are max freq = 32767hz min freq depends on fosc , and the pwm resolution is 8 bits , should be adequate for lcd contrast control.

in your example depending on fosc the tmr2 prescale value is way to low try 16 the pwm resolution might only be about 4 bits (read the data sheet)