I'll try to be clear & concise.

I have a project with six colors. Each of the six colors has five saturation values.

There are many, many comps to build with different animation.

Each comp is based on one of the primary six colors and it's four lighter shades.

The shades are all based on saturation percentages of the main color.

I have set up a rough system (pasted in below) to change the saturation values, but the math is wrong someplace, and I'm unsure why.

I am trying to figure out what maths is needed to accurately represent 50% saturation, 33% saturation, etc. I've tried a division of 256, for obvious reasons, as well as 100, 512, and 128. Dividing by 128 seems to get closest to my goal, but with an odd slider value.

I undersyand adjusting the hue would use a division of 360 due to how hue works, but I'm trying to understand saturation in this use.

thanks

10591_colorshifter000.aep.zip
`rgb = thisComp.layer("MainColor").content("Group 1").content("Fill 1").color;`

hsl = rgbToHsl(rgb);

lite = effect("liteSlider")("Slider")/128;

lite = hsl + [0, 0, lite]

hslToRgb(lite);