The text color, otherwise the foreground color is defined with the property simply called color.
As other color related properties (i.e. background properties), foreground color may be defined in a few possible ways; that is as one of 16 pre-defined names, as RGB decimal numbers or a "hash (#)" delimited hexadecimal numbers.
The color property contains following information:
- value: <color> or inherit;
- initial: depends on browser;
- applies to: all elements;
- inherited: yes;
- percentages: N/A;
- media: visual;
- computed value: as specified.
Learn more about the color data type!
CSS color property example: