is Color Bright or Dark?

Now you can find out


All you have to do is to send request to our API. And then you will get a JSON response from API.

Example

Note: For now API only support colors only in hex without # char.

We want to check that #e785a8 is bright or dark...

Simply send request to https://mehow.ovh/icb/api/e785a8, where e785a8 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...

.json
{
   "color_hex" : "e785a8",
   "color_rgb" : "rgb(231,133,168)",
   "bright_or_dark" : "bright",
   "brightness" : 0.34787450980392
}
Now we know that this color is bright. So we'll use black to write on it.
Inverted color may sometimes be unreadable on this kind of background.

Created by meHow
Current version 1.0 (see changelog if you want to)