Moreover, storing and/or transmitting 3 bytes per pixel is consuming quite some memory and creates latency. ( read more about bit numbering)Įspecially (cheap) screens used with embedded devices do not provide 24 bit color-depth. This is a common convention, though there are also others (LSB first). If the bits on the left have the highest significance, then its called MSB (most signficant bit) first.
The bits on the left have a higher significance and hence have a stronger impact on the color. In the first row I indicate the bit number and in the second row I indicate which color this bit represents and how "significant" it is. In the table below you can see how RGB888 is stored in memory. I highlighted the color each digit represents.
Usually the color code is represented in hexadecimal digits (because 1 byte results in exactly 2 digits).Īn example with common notations for the color yellow (R=255,G=255,B=0) can be seen below.
It defines that we have 8 bits/1 byte of information for each primary color (Red, Green, Blue) which, if added, result in the desired color.
There are different ways on how to represent a color but virtually all displays use RGB, where a color is represented by its Red Green and Blue components (you might have heard something about it in school, a long long time ago, if not: primary colors).Ī common representation of color information is the RGB888 (24 bit/3 byte) format. The more bits (information), the more colors we can display. The color depth defines how many bits are used to represent a color. If we want to have colored pictures, we also need information about the color. This however brings the limitation that we can only indicate if a pixel is ON or OFF (e.g. For monochrome images this is simply a single bit of information, where a prominent example are images on LCD displays such as those in old GameBoys. If we want to store or transmit an image, we have to provide information about each individual pixel. There is also a table of primary colors, their names and codes.Digital images consist out of pixels (big news huh?). For ease of use, the table has several color palettes to choose from, including a safe color palette that ensures correct color reproduction on different types of monitors, computers and browsers. The online color table converts the color of your choice into RGB code (to create a color in a graphics editor) and HEX code (to designate a color in HTML). Supported formats: jpg, jpeg, png, gif, webp. You can also upload a photo or picture by specifying the URL of the image. Open the image from the device and click on the desired area to determine the color of the pixel online. HTML CSS Color Picker helps to pick a color in the form of a HEX color model record. If each of the three groups contains the same characters, for example #112233, then they can be written as #123. In many applications, an abbreviated form of notation for hexadecimal colors is allowed. Colors are represented as three groups of hexadecimal digits, where each group is responsible for its own color: #112233, where 11 is red, 22 is green, 33 is blue. HEX color is nothing more than RGB hexadecimal representation. Hexadecimal color is specified using: #RRGGBB, where the hexadecimal integers RR (red), GG (green), and BB (blue) define the color components.