All you have to do is to send request to our API. And then you will get a JSON response from API.
We want to check that #500ff4 is bright or dark...
Simply send request to https://mehow.ovh/icb/api/500ff4, where 500ff4 have to be your color in hex.
Remember that your color cannot contain the # sign.
As response you will get json, which will looks like that...
{
"color_hex" : "500ff4",
"color_rgb" : "rgb(80,15,244)",
"bright_or_dark" : "dark",
"brightness" : 0.76258431372549
}