Rainbow coloring of local variables can be turned off in Settings...->Configure KDevelop...->Language Support->Local colorization intensity by setting the slider control to its minimum value. Similarly colorization or global variables, global functions, classes, structs, enums, and class members can be turned off in Settings...->Configure KDevelop...->Language Support->Global colorization intensity