I am in the process of building a color scale where the domain consists of a selection of colors, and the range includes a specific set of "subcolors." To better illustrate this concept, let's use an example scenario. I aim to create a function that, when called with color("#00FF00")
, will return a variant of green like dark green. This functionality is crucial for categorizing a variety of items based on standard colors and their corresponding subcolors.