{"name":"@csstools/convert-colors","version":"2.0.1","description":"Convert colors between RGB, HEX, HSL, HWB, LAB, LCH, and more","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/csstools/convert-colors.git"},"homepage":"https://github.com/csstools/convert-colors#readme","bugs":{"url":"https://github.com/csstools/convert-colors/issues"},"main":"index.js","module":"index.mjs","scripts":{"build":"rollup -c .rollup.mjs --silent","docs":"jsdoc -c .jsdocrc -d .gh-pages","prepublishOnly":"npm test","pretest":"npm run build","test":"node .tape"},"engines":{"node":">=6.0.0"},"devDependencies":{"@babel/core":"^7.29.0","@babel/preset-env":"^7.29.0","rollup":"^4.58.0","@rollup/plugin-babel":"^6.1.0","@rollup/plugin-terser":"^0.4.4"},"eslintConfig":{"extends":"dev","rules":{"max-params":[2,4]}},"keywords":["colors","contrast","conversions","converting","converts","hex","hsl","hsv","hwb","lab","lch","rgb","xyz","blue","green","red","blackness","hue","lightness","saturation","whiteness","cie","ciede2000","contrast","wcag"],"_id":"@csstools/convert-colors@2.0.1","gitHead":"0bd4db0378645ddeb61d7822857c2377a45979a6","_nodeVersion":"22.14.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-lKYHgl0GbLX/e5P3xu0dA5nmvUWGaD5QuBX2f0y/uReRHAAycK2DMEK5yYprXrRMTQ4rxN4NQmmKl6Uylretlw==","shasum":"d40800958656d96e43f8f73e2583eadfc5685d57","tarball":"http://registry-npm.ywwl.com/@csstools/convert-colors/download/@csstools/convert-colors-2.0.1.tgz","fileCount":7,"unpackedSize":209857,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC5uoz4nSzI/4qD7/1yl+osF3j7Km0JH8P+0FSsu3MMjwIgUuXD0r8/mR7etfL936G+0FvHHojjl80n93B/lhCRzWI="}],"size":49424,"noattachment":false,"key":"/@csstools/convert-colors/-/@csstools/convert-colors-2.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/convert-colors_2.0.1_1771706970094_0.8924958506325209"},"_hasShrinkwrap":false,"readme":"# Convert Colors [<img src=\"https://cdn.worldvectorlogo.com/logos/nodejs-icon.svg\" alt=\"Convert Colors\" width=\"90\" height=\"90\" align=\"right\">][Convert Colors]\n\n[![NPM Version][npm-img]][npm-url]\n\n[Convert Colors] converts colors between RGB, HEX, HSL, HWB, LAB, LCH, and more.\n\n```js\nimport convert from '@csstools/convert-colors';\n\nconvert.rgb2hsl(100, 100, 100); // [ 0, 0, 100 ]\nconvert.rgb2hwb(100, 100, 100); // [ 0, 100, 0 ]\n\nconvert.hsl2rgb(0, 0, 100); // [ 0, 100, 0 ]\nconvert.hsl2hwb(0, 0, 100); // [ 0, 100, 0 ]\n\nconvert.hwb2rgb(0, 100, 0); // [ 0, 0, 100 ]\nconvert.hwb2hsl(0, 100, 0); // [ 0, 0, 100 ]\n\nconvert.rgb2hue(0, 0, 100); // 240\n\nconvert.rgb2contrast([100, 100, 100], [0, 0, 0]); // 21\nconvert.rgb2ciede2000([100, 100, 100], [0, 0, 0]); // 100\n```\n\n## Usage\n\nAdd [Convert Colors] to your build tool:\n\n```bash\nnpm install @csstools/convert-colors --save-dev\n```\n\n## Features\n\nConversions work by taking arguments that represents a color in one color space\nand returning an array of that same color in another color space.\n\n[Documentation](https://csstools.github.io/convert-colors/)\n\n[npm-url]: https://www.npmjs.com/package/@csstools/convert-colors\n[npm-img]: https://img.shields.io/npm/v/@csstools/convert-colors.svg\n\n[Convert Colors]: https://github.com/csstools/convert-colors\n","publish_time":1771706970263,"_cnpm_publish_time":1771706970263,"dist-tags":{"latest":"2.0.1"}}