I have the following problem.
I have a base color with a pair of different shades of this color.
Example:
- Main color: # 4085c5
- Shadow: # 005cb1
Now I have a different color (say # d60620), but there are no shades of it. From the color, I would like to calculate shades that have a similar difference, like the colors mentioned in the first paragraph.
At first I tried to calculate the difference between the RGB elements and apply them to the second color, but the result was not what I expected. Than I tried to convert the color to HSV , indicating the saturation value and applying the difference to the second color, but again the resulting color was still strange.
The formula was something like this: (HSV (BaseColor) [S] - HSV (Shade) [S]) + HSV (SecondColor) [H]
Does anyone know how this problem can be solved? I know that I am doing something wrong, but I do not know what. :)
source share