A hex color is represented by three different levels of the RGB (Red, Green and Blue) colours. Each of which is given a level of shade. To represent this the colors usually have a hexadecimal value for each of the RGB which is made up of two numbers each ranging from 0-f so ff would represent completely on. If you were to have all three red, green and blue completely on or ffffff then you would have white. The opposite would be 000000 for black and there are a multitude of colors to be had by mixing them all.
To convert the hex colors to Binary which is what the computer would store as in the memory then you would have f as 1111, ff as 11111111 and so on. So ff being a binary equivalent of eight bits that means for each of the three colors or shades you have (RGB) you must have a byte. So if one pixel contains three colors then each pixel must take up three bytes.
A typical screen resolution of 1024 by 768 pixels would take up 2,359,296 bytes or a little over two megabytes. This is of course assuming you have an image with a 24 bit format.
Copyright © 2026 eLLeNow.com All Rights Reserved.