...
To identify a colour that best represents an image, we need to understand that colour can be numerically represented in many , many ways (https://en.wikipedia.org/wiki/Color_model ), called colour models. When an image, stored as a jpg or png or other file format, is loaded into a computer, the colour of each pixel can be numerically represented by passing saved information to any of these colour models.
...