def lerp(a, b, t): return a*(1 - t) + b*t import numpy as np white = np.array([255, 255, 255]) my_color = np.array([...]) lightened25 = lerp(my_color, white, 0.25)