Currently, the alpha can only be specified as a decimal or percentage. However, it would be useful if it could be specified as a number from 0 to 255. Conversion back to percentages is: alpha / 255
const rgbHex = require("rgb-hex")
rgbHex(255, 255, 255, 255)
//=> "ffffffff"
cc @sindresorhus