I have an array of color palettes as shown below. How can I get the key based on the value? For example, how can I get the key Tomato based on the value #D50000?
var arrColorPalette = [{
  "Tomato": "#D50000"
}, {
  "Flamingo": "#E67C73"
}, {
  "Tangerine": "#F4511E"
}];
 
    