Nice answer from @whyzar! You could load .clr files into QGIS and then save it as a .qml file. As described in this post, the standard text format is:
Value R G B Alpha Label
So in your case, you could create a text file with:
And load it from the menu:
You can then edit and save the style as a .qml.
From @Stefan's comment, I've included some quick code which reformats the input text file in a way that QGIS can read it (hopefully!):
main_path = 'path/to/directory/'
with open(main_path + 'infile.txt') as infile, open(main_path + 'outfile.txt', 'w') as outfile:
for line in infile:
value = line.split(' ')
line = line.replace(' ', ',').rstrip('\n') + ',255,' + value + '\n'