{"_id":"accessible-colors","_rev":"9-3492fa8fd700be8499cd2168ceca9c74","name":"accessible-colors","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"accessible-colors","version":"1.0.0","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.0","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"ba2beb6fc97c03e559886b8bfa8ec871d67855d3","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.0.tgz","fileCount":20,"integrity":"sha512-4R4OYHhzcHDvXV6qLfOjLWikSD+hoqLx6y5nlI1KuMfKw/btjFa0xqu6p3noP7nKrpVZOA6RB28+W58EZg4i0Q==","signatures":[{"sig":"MEUCIHikhBAN5mvRkO9fUvNjMcWH09GbcTKVvezXuE/rSdvwAiEA8/U3Zeze6Nju5YcyPTYY+XMg3I/riHHKL1V/lCUwP44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtcTRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpveg/+M9NRduz/I846WhhpqrONGkS75Nz5hSPGXTlkS5gWMRTzUTM8\r\neQUoS7BooDp62lTxjvOZCvXE+PcHbpSkOkBzmkLgDvHtcTI4ln7QlpWGWcye\r\nXpp8eIg0YQBv5nfchPRy82pUJm8G4v8rsNkZIBuvFzyiexlTuDNUu7atP/W1\r\naPEanKCwcuFN4cHwA2ywEi1HeQEKo1GqfWzfLx+TC8Kry9MD3GkTLG87rYjv\r\n7QGrYiIgfKhLw2znUXzWMYYwdqEnm8LAKnhwcZKOpa/NtOkcmm144tm9YRjk\r\nnKWF/fECw+Pp8ULND+2yVCKLgCI5ERCuEJaGX5+8IzuHezXMNHmKoekmtULd\r\nP+ZELISPIJwJb3307Rd4iiTpWnCrxUJjP61VFHzQXj63BCljLo8rKHUdYHB6\r\nmWQXWGrb2LrIjvcLZ5BmMrwWG0DdignG7TSvwNQZUHw9E+gAq+cuNzJ7onCl\r\nsv9FRJm/49Te85kPKn0BKXd+qoV1/eEGZMvf9fXypxGwKbA+k+CiFk4rAcIa\r\nm+QqLBO44meSA2lqRvJbYmYcpk9jCw2NwOPYPu86oaISJuQa4BLWtVtNG6yN\r\n7qyxYAjnP8tkiXCs6NXtsSLmmGZHJ1MjeIEODp4jIq51VhngQFYm1S3M8OL4\r\nNQUHLOMS+3hGNO+BJJJTnV1zq/EtNHm8Q+Q=\r\n=bO1X\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.3","eslint":"^8.31.0","rollup":"^2.79.0","ts-jest":"^29.0.3","prettier":"^2.8.1","babel-jest":"^29.3.1","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.0.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.0_1672856785392_0.8971440218057305","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"accessible-colors","version":"1.0.2","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.2","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"361b67fa5917d2aff81368477824dc918ae611f3","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.2.tgz","fileCount":20,"integrity":"sha512-3t3k4su76eoE8FwtqNC2GFMtyx0/X3PA9Sr8IW/gnQQSie4aVAscame5/iBtWWhwdB7YJ9n83p8JTo0GOim1KA==","signatures":[{"sig":"MEYCIQCTN/pJMaoidIrZOxYdB81v1O+g8fCObs5qcm2VpGmdUQIhAN79N2egEtYXYrIwtrIy8rEWm8a1XHmgtWmY2Blnxs7i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtc82ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZRg/9EQrLsJqwNCDx4d40zxDhZJEol4ZZGvtW4dc82MBXSQo5FUBh\r\nfwUCYcHy0+UpPJNo7tAg9eM2v2+BcY5RA+7AB9hAZu42YFus2pFfZaU3z5y6\r\n8cyL6tVk9f90Kr7phm5vnNk6kMXQdIQkalx9JjaZI6yyCgYf/VWJtJI144gV\r\n/Huyaa9pEilchmHjzFJvh8FUZ/lWzxfmi4zQdSe8gxJ623byskOy73xMdv9c\r\nbLqQsbkS46zIDdDpCMLN2ZTlPshDOJXdKUGDlBTlxkxyn4pF+fUKhqXZruZl\r\nhN8rWM7B71PXQI/u3MjmFnyZYzHXroaDzIgtOI2yurHJ4MGVuRT+FmUTzmGv\r\nLzwBnxcYuMFN05kNFKThbb3z4KTUDsQMpK+Lpxcr31M1008qdKtBPC/TdbgM\r\nmU12yiSxX0rDPobx7l+1lRWfh6mSPT5vXct6chXlcHKAa5hz7yjiDbT63HRk\r\nrO7gOrimLWe/iQ/VhAnANif7oXSCAPruM2HHxWMGP7EFjjOlnB+CZiFbt+4v\r\nLJSz6bjXMq2SQYRIkwViEjiWNtcW7bxvwHJFHuul84/jLM0Mi+hmrDBvSY4m\r\ncAH1NOjNRIiwCaNXIX/bxSv5Be0L7szZ66TRi5GPaPYKHabdUA1AB5yb+HIC\r\nOGjnCqpWtiXGiNBzk0Lh2P9RCcx5gbjObMY=\r\n=PGcE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.3","eslint":"^8.31.0","rollup":"^2.79.0","ts-jest":"^29.0.3","prettier":"^2.8.1","babel-jest":"^29.3.1","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.0.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.2_1672859446150_0.445308437050115","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"accessible-colors","version":"1.0.3","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.3","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"d537f5b27688047ffe832fa4eac8281e94d7b55f","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.3.tgz","fileCount":20,"integrity":"sha512-PrUZxeEQn+D/fyqh4Br4UXRhKtHcZmpvSafsQoZoumK06QvPIEpwNLXelatJNmQq59iHvv/kPAFaQTZUmT8GHQ==","signatures":[{"sig":"MEUCIDJjw44tG/8PejxZI0ovEh59W69oA/bi0sGUgLJ2Jfi+AiEA2VEniXNV+X8fSOvyISCwl4jkBBCmtGWbwuDY3FLaSGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46475,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtdYuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpzGw//SDmqmqQmHFkSFXzErdKDC4AmBYpCLgWhs8lC1jBcOIz3FVuR\r\n+ZWHPc2XkCb7co1oZK9Ts6g2XM/6ryDdTPHI3vhRw3Kph/A2vI/fqskp5Xsp\r\nWHdfbA29DpnpVP/pa238gHd94b7/s9WjkhzGssLFS97dnPvNVeiv1uHxD7iu\r\nnw3cCU5Sq8akksOvGEqe3J4VoHEG0ywUH9+c0yfmgIEC5k3b79M8XPv7NWk9\r\nmWLco72vB6jeYVf4XBvjqzFMLseO3g33H2zqPjn3KFLOIZdqtPZR6eSunyeY\r\nXfbSk7IN1iXDWy5ZeeYpC8zWJqj7NsinOnOY1BE+McXEn7gYFkjcR6BIg/nY\r\nFBoas5mZ61b8WkbTrrt8hJos1+y3q9TuZMT4dZM8uaC79MaW9/QjCCaJ2vqw\r\n5x5LtwqJ9Qz1eV/q9jnWRXQVrQqrC3a6OmEJcMvKD511BYElGnKDNMnKwCYr\r\nB1kO6wtrWLkc27MKCvKbXCwbgynUwthwLIIcA1Eyp1/P8agJVw7La/uDrwqj\r\nRQH5AQ1pIGW680IOXJ6pejJTI15Icy8hArY6eSKNZaBlAwo8baxhMG0l1due\r\nL7aJs3FIWB9jlSu1xhCak9aTinP/ifQ8XvlbQdjxiZYylnK92Cz9igfl079K\r\n2EuNZ/Sv6dC7LIKjX2NXj4Hq2v2uUdZXJCg=\r\n=uA2F\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.3","eslint":"^8.31.0","rollup":"^2.79.0","ts-jest":"^29.0.3","prettier":"^2.8.1","babel-jest":"^29.3.1","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.0.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.3_1672861230680_0.890582540247044","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"accessible-colors","version":"1.0.4","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.4","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"dcbdf1385c0a008fa70a1a6305d854d21c4482f0","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.4.tgz","fileCount":20,"integrity":"sha512-e9G0EtqrrqCcs6QCG7AvEIljjA27I5EqbR6EFQqeQgh/DHv7AIX6J1jzLnDeJfS8HhUqXstUUqxBNlKBWy8MjA==","signatures":[{"sig":"MEYCIQDhplnXtqhmnKClfxpwHj8ae0lcnIlQAE2C/PhcS59AJQIhAPYxXxCrZwS90whx2y2ii08oX2UZ+ld7CgL4pvfincgD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtdewACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4AA//Q0S1zX6M4ZIDOf1LZ/MtFVDsHdPg8s1YIM6VBAkQLoI8TbJy\r\nu8rZLtFl8pz5t+/dP7frdeFZ3kx6pOL+sPYIS2H3tpX29pnNyVVYWV+9MGI5\r\nVZ+BTw6zOddDlkU5dpxDyaJNSpJemxuThLKhlQLzS0qbIrmSXrz9JbcC/JQe\r\nDaQAE0BaHpVsWfiDyOvK3jR4i9Lf1mxgJt40un/rima2zfWM6SAGsJSBMMdV\r\nyYIN5x4Oq1hEZle0upBn6sIf/c4qfSt9DEPL79Luh+r5/XqPrOULxoJYBMfD\r\n0MtrWrDzvu2pNvH7xUHqrs48/xG1Qmv5/QDFt6XPoYvEY4CBICjSlYvDlABH\r\n/m/JkxbXchkd9r7ugYuM0p9sZo0IdPavhbOh4adf79GkE8TmxfCuROyQArZu\r\n2IhtSKusi5G8fWryN4O/AY/6cSijuxok2rOPEFeGycZ97FMgxfx7NynpgZm1\r\n04HukQ7uL66+BtCV700JzDAHKPEW4cp5T1fcNPcCf47W0brtjDBKVUwOIUhy\r\n1C1JORz/m3dvEePkQHL7qiV4EGAuD1enX8o7BN4TZCTrdklP7S89WMKH9Rd6\r\nI+34n7Do/2ejiH4QFFYLb40fz66FCoXCJylQWQX0FKpRAf0rU/SlDXoJZN2W\r\nD2ODQQ0SpdUlqheL6zpIoXOAzn7hK1GTEaI=\r\n=+yM8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.3.1","husky":"^8.0.3","eslint":"^8.31.0","rollup":"^2.79.0","ts-jest":"^29.0.3","prettier":"^2.8.1","babel-jest":"^29.3.1","typescript":"^4.9.4","@types/jest":"^29.2.5","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.0.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.4_1672861616062_0.31690513423007083","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"accessible-colors","version":"1.0.5","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.5","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"a5ad3fc929fbcdf4fb9387b0cb29449052ff90e4","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.5.tgz","fileCount":20,"integrity":"sha512-DZLpfYddLs67qbiLC2g4BFJp9aXxoedVz9uBQ65CBFegeogJ0S0+hNXWFqE6ljvBDWM8soBwDoeZ3gpV1YRPaA==","signatures":[{"sig":"MEUCICQYaXaGpoOIRvJ75GeXWhN80x3kp5pSgk/oU+2KV32aAiEAqmsCpcE8ATLZSU+A++KBuvXaEmacLEfIhvxmMC6y8qk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47736},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","husky":"^8.0.3","eslint":"^8.48.0","rollup":"^2.79.0","ts-jest":"^29.1.1","prettier":"^2.8.1","babel-jest":"^29.6.4","typescript":"^4.9.4","@types/jest":"^29.5.4","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.2.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.5_1693338958599_0.2544596580655225","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"accessible-colors","version":"1.0.6","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.6","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"80856034306895f75a178d9f903472a047e220e3","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.6.tgz","fileCount":20,"integrity":"sha512-CorvfwuDHRzcYyfREV2E07jZvk0MQp0yEHh5rEPlrpJe7aInBaKn8Ik9F/88xPvqIAlxAVdFgj5nk4BcOibEnQ==","signatures":[{"sig":"MEQCIBLsXcG/GBH8VuhMM5ZmCimtiUMSPEIKhMQlMCbclo94AiAklA3FJZglbxR7CqKXKACiXhsXNPKTFvtXiBQiLlSdiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48102},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","husky":"^8.0.3","eslint":"^8.48.0","rollup":"^2.79.0","ts-jest":"^29.1.1","prettier":"^2.8.1","babel-jest":"^29.6.4","typescript":"^4.9.4","@types/jest":"^29.5.4","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.2.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.6_1721681185612_0.3973795481642506","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"accessible-colors","version":"1.0.7","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.7","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"9696220f0e51f423b95875117bf859ef6b234c62","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.7.tgz","fileCount":20,"integrity":"sha512-JHUQl/bpkvgYDBRfzMSXV2e55D2ZZisYpj7bE/9ZClt9uorjovfRGcRZwJ8Wg66ee2SAp/A3PZjw+HPnpQoiTw==","signatures":[{"sig":"MEUCIHXFV1KRpdKejIBJvptK+HVDtTpLznE13aFh6XguLHTYAiEAtyRR7zckH/aUF1gmLOF0H5s4dRKWXmdI0zM8GFIUwwM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48102},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Christopher Hawke\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","husky":"^8.0.3","eslint":"^8.48.0","rollup":"^2.79.0","ts-jest":"^29.1.1","prettier":"^2.8.1","babel-jest":"^29.6.4","typescript":"^4.9.4","@types/jest":"^29.5.4","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.2.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.7_1721681308894_0.8648861440864726","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"accessible-colors","version":"1.0.8","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"url":"https://github.com/cdhawke","name":"Christopher Hawke"},"license":"MIT","_id":"accessible-colors@1.0.8","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"bin":{"accessible-colors":"scripts/bin.js"},"dist":{"shasum":"d5c53dd6b2336ae7f1284c8e1bf9418052db5527","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.8.tgz","fileCount":14,"integrity":"sha512-sy7bdfJWOHlWB90JyU1M3TVv5iEdrtNgySr+cHPSXSs049k6anscvsodfwOY10grb0FfSiUeszkf2PBnBqs62A==","signatures":[{"sig":"MEUCIQDrWuXyo5dWwWDsN1VsgMsE5W1V8nNYXvqc8QzcBwiVkgIgJmxpUCCy1rL/j8+hKUXktYlPktsTzjVg2LWa+EfpHJk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48102},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"cff940f6dfdd9ff6e2a8ab4bd946fb86f99463ab","scripts":{"lint":"eslint --fix 'src/**/*.ts'","test":"jest","build":"rollup -c","format":"prettier --write 'src/**/*'","prepare":"husky install","prepublishOnly":"yarn run build-production","build-production":"PRODUCTION=true yarn run build"},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"repository":{"url":"git+https://github.com/cdhawke/accessible-colors.git","type":"git"},"_npmVersion":"10.9.0","description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","directories":{},"_nodeVersion":"22.11.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.4","husky":"^8.0.3","eslint":"^8.48.0","rollup":"^2.79.0","ts-jest":"^29.1.1","prettier":"^2.8.1","babel-jest":"^29.6.4","typescript":"^4.9.4","@types/jest":"^29.5.4","@types/node":"^18.11.18","rollup-plugin-dts":"^5.1.0","rollup-plugin-terser":"^7.0.2","@rollup/plugin-commonjs":"^24.0.0","@rollup/plugin-typescript":"^10.0.1","@typescript-eslint/parser":"^5.48.0","@rollup/plugin-node-resolve":"^15.2.1","@typescript-eslint/eslint-plugin":"^5.48.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/accessible-colors_1.0.8_1733865736521_0.07789462894662402","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"accessible-colors","version":"1.0.9","description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"bin":{"accessible-colors":"scripts/bin.js"},"scripts":{"build":"tsup","format":"prettier --write 'src/**/*'","build-production":"PRODUCTION=true tsup","lint":"eslint --fix 'src/**/*.ts'","test":"jest","prepare":"husky","prepublishOnly":"npm run build-production"},"repository":{"type":"git","url":"git+https://github.com/cdhawke/accessible-colors.git"},"keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"author":{"name":"Christopher Hawke","url":"https://github.com/cdhawke"},"license":"MIT","bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","overrides":{"js-yaml":"4.1.1","minimatch":"5.1.8","brace-expansion":"^2.0.1"},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^22.0.0","@typescript-eslint/eslint-plugin":"^8.0.0","@typescript-eslint/parser":"^8.0.0","babel-jest":"^29.7.0","eslint":"^8.57.0","husky":"^9.0.0","jest":"^29.7.0","prettier":"^3.0.0","ts-jest":"^29.2.3","tsup":"^8.0.0","typescript":"^5.0.0"},"gitHead":"7b20e345b8460da87ff23b99f496eddf1d2a0d6a","_id":"accessible-colors@1.0.9","_nodeVersion":"25.7.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-6cGO01GbU1xXncZHni8IK7eYQtyqKyeGU13q6pktk8PB0/NlebBR6rCbanDNisenBo4Ajco1Lkg4oPJXcJ1ezA==","shasum":"9830772acd3316edf2765a25390680fc21d50497","tarball":"https://registry.npmjs.org/accessible-colors/-/accessible-colors-1.0.9.tgz","fileCount":9,"unpackedSize":67756,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFgx5w5ExbLAe8ArfIhGxJdVgjUwgdnvQnwYJZVdhJt5AiEAmmxho4CHHpmm8pli6Fc0H4Vchx7mntsT5gDaQIw43jA="}]},"_npmUser":{"name":"cdhawke","email":"cdhawke1@gmail.com"},"directories":{},"maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/accessible-colors_1.0.9_1772409284686_0.5936613634799881"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-04T18:26:25.392Z","modified":"2026-03-01T23:54:44.977Z","1.0.0":"2023-01-04T18:26:25.673Z","1.0.2":"2023-01-04T19:10:46.369Z","1.0.3":"2023-01-04T19:40:30.839Z","1.0.4":"2023-01-04T19:46:56.208Z","1.0.5":"2023-08-29T19:55:58.829Z","1.0.6":"2024-07-22T20:46:25.748Z","1.0.7":"2024-07-22T20:48:29.109Z","1.0.8":"2024-12-10T21:22:16.694Z","1.0.9":"2026-03-01T23:54:44.833Z"},"bugs":{"url":"https://github.com/cdhawke/accessible-colors/issues"},"author":{"name":"Christopher Hawke","url":"https://github.com/cdhawke"},"license":"MIT","homepage":"https://github.com/cdhawke/accessible-colors#accessible-colors","keywords":["wcag","wcag-2.1","accessibility","accessible","color","colors","contrast","contrast-ratio","luminance","luminosity","suggestion","generator"],"repository":{"type":"git","url":"git+https://github.com/cdhawke/accessible-colors.git"},"description":"Utility functions for working with colors in adherence to WCAG 2.1 guidelines.","maintainers":[{"name":"cdhawke","email":"cdhawke1@gmail.com"}],"readme":"# accessible-colors\n\nUtility functions for generating and interacting with colors based on WCAG 2.1 [minimum](https://www.w3.org/TR/WCAG21/#contrast-minimum) and [enhanced](https://www.w3.org/TR/WCAG21/#contrast-enhanced) contrast guidelines.\n\n- [accessible-colors](#accessible-colors)\n  - [Installation](#installation)\n  - [Usage](#usage)\n    - [`randomColor`](#randomcolor)\n    - [`getLuminance`](#getluminance)\n    - [`getContrast`](#getcontrast)\n    - [`isContrasting`](#iscontrasting)\n    - [`getRandomAAColor`](#getrandomaacolor)\n    - [`getRandomAAAColor`](#getrandomaaacolor)\n    - [`isAAContrast`](#isaacontrast)\n    - [`isAAAContrast`](#isaaacontrast)\n    - [`suggestAAColorVariant`](#suggestaacolorvariant)\n    - [`suggestAAAColorVariant`](#suggestaaacolorvariant)\n\n## Installation\n\n```sh\nnpm i accessible-colors\n```\n\nOr\n\n```sh\nyarn add accessible-colors\n```\n\n## Usage\n\n### `randomColor`\n\nGenerates a random color string in hex format e.g. `'#000000'`.\n\n```ts\nconst color: string = randomColor();\n```\n\n### `getLuminance`\n\nRetrieve the [luminance](https://www.w3.org/TR/WCAG20/#relativeluminancedef) of a specified hex color.\n\n```ts\nconst luminance: number = getLuminance('#00FF33');\n// 0.717590...\n```\n\n### `getContrast`\n\nRetrieve the [contrast ratio](https://www.w3.org/TR/WCAG20/#contrast-ratiodef) between two colors with optional precision.\n\n```ts\nconst contrastRatio: number = getContrast('#00FF33', '#FFFFFF'); // 1.368 contrast ratio\ngetContrast('#00FF33', '#616161'); // 4.528 contrast ratio\ngetContrast('#00FF33', '#000000', 4); // 15.3518 contrast ratio\n```\n\n### `isContrasting`\n\nDetermine if the provided colors are within the specified contrast ratio.\n\n```ts\nconst isContrasting: boolean = isContrasting('#00FF33', '#FFFFFF', 1.3); // true - 1.368 contrast ratio\nisContrasting('#00FF33', '#FFFFFF', 4.5); // false - 1.368 contrast ratio\n```\n\n### `getRandomAAColor`\n\nProvided a color, randomly retrieves a color string in hex format that is at least WCAG AA compliant. This means a contrast ratio of at least 4.5 (or 3 for large text).\n\n```ts\nconst color: string = getRandomAAColor('#00FF11');\n\n// For large text (contrast ratio > 3)\ngetRandomAAColor('#00FF11', true);\n```\n\n### `getRandomAAAColor`\n\nProvided a color, randomly retrieves a color string in hex format that is at least WCAG AA compliant. This means a contrast ratio of at least 7 (or 4.5 for large text).\n\n```ts\nconst color: string = getRandomAAColor('#00FF11');\n\n// For large text (contrast ratio > 4.5)\ngetRandomAAColor('#00FF11', true);\n```\n\n### `isAAContrast`\n\nProvided two colors, and an optional `large` boolean, will determine if the provided colors satisfy the WCAG AA compliance contrast ratio.\n\n```ts\nconst isCompliant: boolean = isAAContrast('#00FF33', '#FFFFFF'); // false - 1.368 contrast ratio\nisAAContrast('#00FF33', '#616161'); // true - 4.528 contrast ratio\nisAAContrast('#00FF33', '#617765', true); // true - 3.541 contrast ratio with large text\n```\n\n### `isAAAContrast`\n\nProvided two colors, and an optional `large` boolean, will determine if the provided colors satisfy the WCAG AAA compliance contrast ratio.\n\n```ts\nconst isCompliant: boolean = isAAAContrast('#00FF33', '#613365'); // true - 7.075 contrast ratio\nisAAAContrast('#00FF33', '#616161'); // false - 4.528 contrast ratio\nisAAAContrast('#00FF33', '#616161', true); // true - 4.528 contrast ratio with large text\n```\n\n### `suggestAAColorVariant`\n\nGiven two color variants: one to change `colorToChange`, and one to keep `colorToKeep`, the function will suggest the nearest WCAG AA compliant variant to the `colorToChange`, with respect to the `colorToKeep`.\n\nIt does this by lightening and darkening the `colorToChange` via binary searching relative contrasting lightness, and then taking either the lighter or darker value based on whichever is closer to the original.\n\n```ts\nconst suggestion: string = suggestAAColorVariant('#00FF33', '#FFFFFF'); // #008a1c\ngetContrast('#FFFFFF', '#008a1c'); // 4.514\nsuggestAAColorVariant('#00FF33', '#FFFFFF', true); // large text - #00ac22\ngetContrast('#FFFFFF', '#00ac22'); // 3.033\n```\n\n### `suggestAAAColorVariant`\n\nSimilar to [suggestAAColorVariant](#suggestaacolorvariant), but using WCAG AAA standards of >= 7 contrast ratio (or >= 4.5 contrast ratio for large text).\n\n```ts\nconst suggestion: string = suggestAAColorVariant('#00FF33', '#FFFFFF'); // #008a1c\ngetContrast('#FFFFFF', '#008a1c'); // 4.514\nsuggestAAColorVariant('#00FF33', '#FFFFFF', true); // large text - #00ac22\ngetContrast('#FFFFFF', '#00ac22'); // 3.033\n```\n","readmeFilename":"README.md"}