I received a list of all colors for my calendars and events using the Colors resource.
This is a list of strings like #ff45a7 (color codes).
The fact is that none of these colors match the real colors as they exist in my calendars. They are completely different. For example, for a color with colorId 1 ("lavender", blue color), I have a code that represents green color, etc. Absolute dismatch. In the resulting color codes list (I check color by its code in the Photoshop) I see some colors that not exist in my calendars, and for similar colors I have completely different hex codes.
Perhaps there is some kind of coefficient that can be applied to the API color codes, or some method that correlates the colors obtained from API to match real calendars and events colors?
I did not find it anywhere in Google Calendar API.