~260 bytes gzipped
Use it like this:
var colorrr = require("colorrr");
colorrr.getHex(); // "#28A0B9" (string)
colorrr.getRBG(); // [122, 116, 46] (array)
Or like this:
import { getHex, getRGB } from 'colorrr';
getHex(); // "#28A0B9" (string)
getRGB(); // [122, 116, 46] (array)