# Description

Specifies the color with a hex code, e.g. `#ff0000`

The first two characters are the red saturation. Range is 00-ff.

The second two characters are the red saturation. Range is 00-ff.

The third two characters are the red saturation. Range is 00-ff.

Note: A 3 digit shorthand notation can be used for some hex values, e.g. `#a9c` is equivalent to `#aa99cc`.

# Examples

This example sets the paragraph text color to red and `h1` headings to green.

    p {
      color:#ff0000;
    }

    h1 {
      color:#0f0;
    }

# Browser Support

Firefox | IE | Chrome | Opera | Safari

# Miscellaneous Information

Defined In: | CSS2