outline-color

Sets the color of the outline drawn around an element. Outlines are different from borders because they don't take up any space in the layout.

It is documented as part of the CSS Basic User Interface specification.

/* Usage Example */
button:focus {
  /* Sets a specific color for the focus outline */
  outline-color: #3b82f6;
}

/* Syntax */
outline-color: auto;

/* Global values */
outline-color: inherit;
outline-color: initial;
outline-color: revert;
outline-color: revert-layer;
outline-color: unset;
Widely available Since 2017 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

1+
1.5+
1.2+
12+

New CSS drops.

Join 750+ readers who've survived clearfix hacks.

ESC