i'm trying to create a color scale with domain a list of colors and range a "sublist" of colors.
Maybe is better to explain with an example. I would like a function such that color("#00FF00"), returns a different kind of green like for example dark green.
This is because i need to catalogue a list of items with some standard colors and a sublist with "subcolors"
There are around 140 named colous you can use in css. See for example https://www.w3schools.com/colors/colors_hex.asp. It includes things like "red", "yellow", "teal", "deepskyblue" and so on. To select you could use a select tag and have option tags with text equal to the name and with backgroundColor also equal to the name.