# Difference between revisions of "Color palettes"

A Single Byte Color Palette is a color palette that can be defined using eight or fewer bits. There are many different algorithms used to encode an entire color palette into a single byte and quickly get the results.

## RGB

In the early days of color graphics, RGB was actually pretty rare, but as computers pushed RGB on their monitors, they quickly became the predominant color system in computers and now, most other forms of color display. Here is an image in 24-bit RGB values as a reference for the one-byte palettes below.

### 1-1-1 (3-bit)

1 - Red, 1 - Green, 1 - Blue.

This system can be represented with 3 bit, one for red, green, and blue respectively, resulting in a total of 8 colors.

### 8-8-4 (6-bit)

8 - Red, 8 - Green, 4 - Blue.

This system separates the bits in a byte into three sections, 3 are used for the red intensity, 3 for the green intensity, and 2 for the blue intensity. This results in 8 levels of red, 8 of green, and 4 of blue. This is often the optimal system because the human eye is better at discerning between different intensities of red and green compared to blue.

### 8-4-8 (6-bit)

8 - Red, 4 - Green, 8 - Blue.

This system separates the bits in a byte into three sections, 3 are used for the red intensity, 2 for the green intensity, and 3 for the blue intensity. This results in 8 levels of red, 4 of green, and 8 of blue. This is often the optimal system because the human eye is better at discerning between different intensities of red and green compared to blue.

### 4-8-8 (6-bit)

4 - Red, 8 - Green, 8 - Blue.

This system separates the bits in a byte into three sections, 3 are used for the red intensity, 3 for the green intensity, and 2 for the blue intensity. This results in 4 levels of red, 8 of green, and 8 of blue. This is often the optimal system because the human eye is better at discerning between different intensities of red and green compared to blue.