private static Color ChangeIntensity(Color baseColor, float percent) { int H, I, S; ControlPaint.Color2HBS(baseColor, out H, out I, out S); int NewIntensity = Math.Min(255, (int)(I * percent)); return(ControlPaint.HBS2Color(H, NewIntensity, S)); }