colored

2.3.2 · active · verified Sat Apr 11

Colored is a simple Python library (current version 2.3.2) for adding color and formatting to terminal output. It provides a collection of color codes and names, supporting 256-color terminal setups and modern RGB color modes. It maintains an active development status with regular updates, having released version 2.3.2 on March 28, 2026.

Warnings

Install

Imports

Quickstart

The quickstart demonstrates basic foreground, background, and RGB color usage with f-strings, emphasizing the importance of `Style.reset` to revert terminal formatting.

from colored import Fore, Back, Style

print(f'{Fore.white}{Back.green}Colored is Awesome!!!{Style.reset}')
print(f'{Fore.rgb(255, 100, 50)}This is a true color text.{Style.reset}')

view raw JSON →