# get_colored_text

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/input/get_colored_text)

Get colored text.

## Signature

```python
get_colored_text(
    text: str,
    color: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | The text to color. |
| `color` | `str` | Yes | The color to use. |

## Returns

`str`

The colored text.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/9f232caa7a8fe1ca042a401942d5d90d54ceb1a6/libs/core/langchain_core/utils/input.py#L38)