Typically the compensation would be done on the current side, not the PWM percentage, otherwise all of the color mixing charts would be wrong.
Most simple PWM controllers are dumb as a post, no gamma correction or current control other than the limiting resistors, all quite crude.
Most consumers don't know/care about exact color matching.
When you actually do gamma correction, it's usually applied to the PMW, it's the easy way.