rgb-hex-conv
Convert RGB values of a color to a hexadecimal notation 6-digit or 3-digit string
Usage
const rgbHexConv = ; // 6 digits hexadecimal notation;// returns '020304';// returns 'FF00FF';// returns 'C87B31';// returns '7B6101' // 3 digits hexadecimal notation;// returns '000';// returns 'F0F';// returns 'C73';// returns '760'
License
MIT © Damian Polak