omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.63k stars 48 forks source link

Colour grouping #102

Open mattpilott opened 1 year ago

mattpilott commented 1 year ago

It would be great if colord could tell me which root colour a given colour falls into for example: hsl(6, 93%, 71%) would be grouped under red hsl(195, 100%, 50%) would be grouped under blue hsl(120, 100%, 50%) would be grouped under green

There could be perhaps 10 colour groups such as red, green, blue, purple, orange, grey, brown, yellow, black, white

syntax could be like colord(#ff0000).toGroup()