I have an complex problem, but it could be solved via this little problem. I would like to make a colorizer, which works per pixel.
I have a defined base color for the picture (the picture has some pixels with this color and a lot of other pixels, which are near to this color):
Hex: #188DD9
HSL: 204° 80% 47%
RGB: 24 141 217
I know my target base color:
Hex: #23752E
HSL: 128° 54% 30%
RGB: 35 117 46
So, I would like to colorize an image.
My assumption is that if I find the correlation in this two HSL values, I can colorize my picture pixel by pixel.
Currently I found that if I move the base color hue with (target hue - base hue) = -76, the hue will be fine.
Could you direct me where is the connexion between saturation and lightness to solve this problem?