@defo550/rgb-to-hex
v0.1.0
Published
Convert rgb color to hexadecimal.
Downloads
7
Maintainers
Readme
Convert RGB color to HEX
Installation
Package is distributed via npm:
npm i @defo550/rgb-to-hex
Usage
const rgbToHex = require('@defo550/rgb-to-hex');
rgbToHex(246, 141, 100);
// 'f68d64'
rgbToHex('rgb(58 81 113)');
// '3a5171'