foregroundColor
Foreground color is the color applied to the visible elements that appear in front of a surface, such as text, icons, lines, and shapes. It is distinct from background color, which colors the surface behind those elements. In user interfaces and documents, choosing an appropriate foreground color affects readability, emphasis, and visual hierarchy.
In software development, foreground color is commonly exposed as a property or parameter named foregroundColor (or
In CSS, the analogous concept for text is the color property, which sets the foreground color of
See also: color, background color, contrast ratio, alpha channel, accessibility.