BIOS color attributes

From Wikipedia, the free encyclopedia
Jump to: navigation, search

BIOS Color Attribute is a 8 bit value where the low 4 bits represent the character color and the high 4 bits represent the background color. For example, to print a white character 'A' with black background, the "BIOS Color Attribute" would be set to the hexadecimal value 0x0F. The highest bit of the color attribute, which is also the highest bit of the background color can take over two functions. It can either have no influence on the background color making text blink when set, effectively limiting the available background colors to only eight, or if intensive background colors are enabled the full 16 colors become available but blinking is no longer available. This behavior can be changed, i.e., using BIOS 80x86 interrupt 0x10, function 0x1003.[1] BIOS colors are often used in console programs (e.g. command prompt) and sometimes for chat in games (e.g. Minecraft[2]).

List of BIOS color attributes[edit]

Hex Binary Color
0 0000 Black  
1 0001 Blue
2 0010 Green
3 0011 Cyan
4 0100 Red
5 0101 Magenta
6 0110 Brown
7 0111 Light Gray
8 1000 Dark Gray
9 1001 Light Blue
A 1010 Light Green
B 1011 Light Cyan
C 1100 Light Red
D 1101 Light Magenta
E 1110 Yellow
F 1111 White

See also[edit]


  1. ^ Int 10h/AX=1003 Ralf Brown Interrupt List, online version
  2. ^ "Multiplayer". Gamepedia. 11 June 2015. Retrieved 23 July 2015.