RBG values to colour name Python

All other Source.Python topics and issues.
sandeep kumar
Junior Member
Posts: 1
Joined: Mon Jul 16, 2018 5:21 am
Location: New York

RBG values to colour name Python

Postby sandeep kumar » Mon Jul 16, 2018 5:47 am

Hi,I was looking to convert given RGB values to the actual colour name in Python or atleast the close match of the colour.

Given the values, [50.2862498 72.08996663 70.66173433] I want to be able to distinguish these values from [185.89894822 186.47802004 185.94613642] as a shade of green.

Reason I need to do that is to remove shades of green from an image.
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Re: RBG values to colour name Python

Postby VinciT » Mon Jul 16, 2018 7:05 pm

Haven't really played around with color libraries, but these two seem to do what you need: webcolors and Optimized-RGB-To-ColorName.
As for removing shades of green from an image, I have no idea.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 25 guests