In brief
color sets text colour and the currentColor value. Other properties can use currentColor so a border or decorative detail follows the text colour.
Useful to know
color sets text colour and the currentColor value. Other properties can use currentColor so a border or decorative detail follows the text colour. [1]
For example, border-color: currentColor avoids repeating the same value. When switching themes, check all dependent details; inherited colour can also change for nested elements.
Sources
For further detail and to check the information: