The range of color in RGB

What is your goal?

My motivation for writing this was to get a limited palette of colors to use as an alternative to Gradient, like this: