---
url: /tui.zig/api/color.md
---
# Color

`Color` represents terminal colors: truecolor (RGB), 256 palette, and named colors.

APIs:

* `Color.hex(0xRRGGBB)`
* `Color.rgb(r,g,b)`
* `Color.palette(index)`

See `src/style/color.zig` for implementation and utilities.
