具有线性渐变的边框颜色

<hr class="instagram">

I am trying to use Linear Gradient with <hr> tag for coloring the line. Is it a valid action? If not how can I achieve that?

.instagram {
  color: linear-gradient(to right, hsl(37, 97%, 70%), hsl(329, 70%, 58%)); /* Not Working */
  border-width: medium;
  border-style: solid;
  margin-block-start: 0px;
  margin-block-end: 0px;
  border-radius: 10px;
  border-radius: 10px 10px 0px 0px;
}