light - Change lightning of color in stylus (absolute change) -


i have many different colors in stylus. transform colors lightning of 220 (i lighten color). can't use lighten because change lightning component relative it's initial value, colors had not lot of lightning still have more 1 did'nt have some.

is built in function or way ?

there some debate whether stylus should lighten colors relatively luminosity or "add white" on top of it.

anyway, want replace luminance value in hsl scale, can decompose color , keep hue , saturation, , force luminance value want:

c = #123; n = hsl(hue(c), saturation(c), 86); 

here 86 percentage.


Comments