0% found this document useful (0 votes)
9 views2 pages

Basic Colors

The document provides a list of basic, bright, and background colors along with their corresponding ANSI codes and descriptions for text formatting. It includes colors such as Black, Red, Green, and their bright variants, as well as background colors. Additionally, it mentions the ANSI code to reset the text color to the terminal's default settings.

Uploaded by

Elly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Basic Colors

The document provides a list of basic, bright, and background colors along with their corresponding ANSI codes and descriptions for text formatting. It includes colors such as Black, Red, Green, and their bright variants, as well as background colors. Additionally, it mentions the ANSI code to reset the text color to the terminal's default settings.

Uploaded by

Elly
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Basic Colors:

Color ANSI Descripti


Name Code on

Black \033[30m Black text

Red \033[31m Red text

Green \033[32m Green text

Yellow \033[33m Yellow text

Blue \033[34m Blue text

Magenta
Magenta \033[35m
text

Cyan \033[36m Cyan text

White \033[37m White text

Bright Colors:

ANSI
Color Name Description
Code

Bright black (dark


Bright Black \033[90m
gray) text

Bright Red \033[91m Bright red text

Bright Green \033[92m Bright green text

Bright Yellow \033[93m Bright yellow text

Bright Blue \033[94m Bright blue text

Bright
\033[95m Bright magenta text
Magenta

Bright Cyan \033[96m Bright cyan text

Bright White \033[97m Bright white text

Background Colors:

ANSI
Color Name Description
Code

Background Black \033[40m Black background

Background Red \033[41m Red background


ANSI
Color Name Description
Code

Background Green
\033[42m
Green background

Background Yellow
\033[43m
Yellow background

Background Blue \033[44m Blue background

Background Magenta
\033[45m
Magenta background

Background Cyan \033[46m Cyan background

Background White \033[47m White background

Reset Color:
 Reset to Default: Use \033[0m to reset the text color and attributes back to
the terminal's default.

You might also like