Plotly HeatMap ColorScale

I was wondering if it was possible to base the colorscale/colors of the heatmap z values based on a defined legend/ values instead of using the percentile method?

Iā€™m interested in doing this as well.