I am trying to print the colors of a image.

```
import math
from PIL import Image
im = Image.open("test.jpg").convert("RGBA")
color_count = 10
# im.rotate(45).show()
colors = im.getcolors(maxcolors=1000000)
max_occurence, most_present = 0, 0
for c in colors:
    if c[0] > max_occurence:
       (max_occurence,most_present) = c
print(most_present)

```

I was able to print the pixels for the picture below. Is there a way that I can extract the colors such as yellow, red, green, white, etc as the output instead of pixels?

And after getting the pixel information how do I print the colors from the pixel?

for example. `[(159, 168, 210), (23, 21, 22), (143, 107, 73), (235, 226, 199), (120, 122, 152), (211, 166, 102), (82, 62, 54), (85, 40, 37), (179, 150, 101)]` how to represent or print this as `[red, green, yellow, blue, black]` etc

[![enter image description here](https://i.stack.imgur.com/mYgI6.png)](https://i.stack.imgur.com/mYgI6.png)

Thanks,

Ankush Reddy.