# Property Description

The outline-color property specifies the color of an outline.

Note: Always declare the outline-style property before the outline-color property. An element must have and outline before the outline color can be changed.

# Property Values

Value | Description
--- | ---
color_name | Specifies the outline color with a color name
hex_number | Specifies the outline color with a hex code
rgb_number | Specifies the outline color with an RGB code
invert | (default) Performs a color inversion. This ensures that the outline is visible, regardless of color background.
inherit1 | Specifies that the value of the property should be inherited from the parent element

# Examples

This example sets the outline style to dotted and the color to blue.

    p {
      outline-style:dotted;
      outline-color:#0000ff;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

1 - 'inherit' not supported by IE

# Miscellaneous Information

Inherited: | No
Defined In: | CSS2