With a given hex color for the worst and best case, JavaScript calculates the colors in between.