I am trying to get string of color information from an image, but how to get that information from RGB value like this one:Tool tip in excel color selector
Please help me or tell me what can I do to get string information from RGB color.
I am trying to get string of color information from an image, but how to get that information from RGB value like this one:Tool tip in excel color selector
Please help me or tell me what can I do to get string information from RGB color.
You could use a dictionary to map color values to either names or known X11 colors. But there is nothing builtin for office like colors.
To do any more advanced processing you likely need to convert RGB to HSL. This give you separate channels for Hue, Saturation, and Lightness. You would then need to define ranges for each name, i.e. if(hue > 100 && hue < 140) return "green"
But that will likely quickly become complicated, since a specific color is in effect section of a color volume, and different people will disagree about where the borders are. How dark does something need to be before you would call it black? So I would take a long hard think about what you really want to do, and if there are any other ways to do it.