{"css":"","js":"function rgb2hex(sRGB) {\n var reg= sRGB.match(/(\d{0,3},\s{0,}\d{0,3},\s{0,}\d{0,3})/g)\n if(!reg){return sRGB}\n var result=reg[0].split(',')\n var a='#'\n for(let i=0;i<result.length;i++){\n result[i]=result[i].trim()\n if(result[i]==='0'){\n a+='00'\n }else{\n a+=Number(result[i]).toString(16)\n }\n \n \n \n }\n return a\n}\n","html":"","libs":[]}