If a specific color set consisting of 3 colors is provided, how can a new set of two colors be generated while maintaining the same ratios?
For instance, a visually appealing blue gradient is as follows:
rgb(172, 228, 248)
- Initial Color
rgb(108, 205, 243)
- Final Color
rgb(121, 181, 203)
- Border Color
The task at hand is to create a series of 10 similar gradients beginning from various colors while ensuring the light-to-dark ratios remain consistent.
For example, starting with the color rgb(254, 218, 113)
(yellow), how can the end and border colors be calculated while maintaining the same ratios as described above?