currentColor

CSS

Often forgotten about in CSS: The value of the ‘currentColor’ keyword is the computed value of the ‘color’ property.

.class-name {
  color: #bada55;
  border: 5px solid currentColor;
}