p {
    color: blue;
    border-width: 5px;
    border-style: solid;
    border-color: currentcolor; /* Current text color */
}
<p>The current text color of the p element is blue.</p>
<p>The p element's border-color is currentcolor (current text color).</p>
Rendered Output
<p>text-decoration-color property</p>
p {
    color: orangered;
    text-decoration-line: underline;
}
p:hover {
    color: blue;
}
Rendered Output
<div class="box">box</div>
.box {
    color: orangered;
    box-shadow: 5px 5px 10px;
    width: 200px;
    height: 100px;
}
.box:hover {
    color: blue;
}
Rendered Output