I checked the official GeoTIFF documentations and there is no reference to color maps. Regardless, I see color maps or tables referenced everywhere, including in other questions.
I am aware that a GeoTIFF can be converted into a RGBA GeoTIFF, but this would simply be a completely different GeoTIFF with the original information lost, unless the legend is also saved separately.
I am asking if there is a way to not change the values of the GeoTIFF and to include in it a threshold based color map (or maybe a rule based one) that can be later interpreted by most software correctly.