Pink streak with viridis colormap

Using a viridis colormap, I usually see a pink band in wrong places, like below.

pink

When I load the same mesh in Paraview (desktop), these pink anomalies don’t show. It looks like vtkColorTransferFunctionInterpolateDiverging in ColorTransferFunction.js is misbehaving on particular inputs. For example,

var result = []
vtkColorTransferFunctionInterpolateDiverging(0.5707305155150184, [0.119512,0.607464,0.540218], [0.1194675,0.6093025000000001,0.5396], result)

produces

[0.7820796705139519,0.4503822359691277,0.441290474393096]

Note that the red component should be around 0.1195, but instead it’s 0.78. That causes the pink hue. Can someone take a look?

https://gitlab.kitware.com/paraview/paraview/-/issues/19092