> For the complete documentation index, see [llms.txt](https://epic-oreo.gitbook.io/cookie-utils/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://epic-oreo.gitbook.io/cookie-utils/usage/colors.md).

# Colors

To print your first colored text run

```python
from cookieutils import colors
print(colors.color("hello", 8))
```

you can also use hex and rgb like so

```python
from cookieutils import colors

color = (colors.rgb_to_xterm((7, 255, 131)))
print(colors.color("hello", color))

color2 = (colors.hex_to_xterm("8087f2"))
print(colors.color("hello", color2))
```
