# P_charcolor / P_charbackcolor
## Syntax:
@charcolor(pos)
@charbackcolor(pos)
## Use Case:
Returns the ANSI color index (0-15) of the character at the specified 1-indexed position in the last line received from the server. `charcolor` returns the foreground color, while `charbackcolor` returns the background color.
## Arguments:
- **{pos}**: The character position.
## Examples:
1. **/echo @charcolor(1)**
## See Also:
@textcolor, @wordcolor, /help colors