I found this nice color palette

I want to use it to let the user select a color palette being the first 8 colors (vertically) from this palette . So I thought I could add some more, and of course not type all the hex codes.
Is there a way to calculate these values?
So for instance enter color c6ff89 (or any other color) and then end with 498e00 (which is the right column).
So the underlying question is: is there math to do on these colors?
And second, now that I am looking at these colors: the items on the top row all seem the same kind of 'lightness' (don't know what term to use). What I mean the left one is the same light of blue as the right is light of green, so the same lightness (/darkness). Is that also possible to calculate, to calculate the same kind of lightness for let's say red or orange?
