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.

Quick example

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

Quick facts

Initial value
auto
Inherited
No
Applies to
all elements
Animation type
color

Values

auto

outline-color Browser Support

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.

Safe to use without fallbacks.

1+
1.5+
1.2+
12+
ESC