When I tried to invert the palette, I got a very strange looking graph. I can’t figure out why.
Int_t kInvertedSolar[255];
Double_t stops[9] = { 0.0000, 0.1250, 0.2500, 0.3750, 0.5000, 0.6250, 0.7500, 0.8750, 1.0000};
Double_t redS[9] = {230./255., 201./255., 201./255., 196./255., 200./255., 174./255., 154./255., 116./255., 99./255.};
Double_t greenS[9] = {173./255., 136./255., 119./255., 83./255., 58./255., 32./255., 8./255., 0./255., 0./255.};
Double_t blueS[9] = {24./255., 19./255., 17./255., 14./255., 9./255., 9./255., 7./255., 6./255., 5./255.};
Int_t IdxS = TColor::CreateGradientColorTable(9, stops, redS, greenS, blueS, 255);
for (int i=0;i<100;i++) kInvertedSolar[i] = IdxS+i;
gStyle->SetPalette(255,kInvertedSolar);

I just reversed the order of the red, green, and blue arrays from the definition of kSolar at line 2956 of TColor.