{"_id":"get-contrast-ratio","_rev":"12-03e3f3edca50ae1f655024dd7c5577f4","name":"get-contrast-ratio","dist-tags":{"latest":"1.0.0","next":"1.0.0-1"},"versions":{"0.1.1":{"name":"get-contrast-ratio","version":"0.1.1","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.1.1","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"821164d3e66d09eb66c5736a0d0bf9ba81e6e960","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.1.1.tgz","fileCount":12,"integrity":"sha512-CR0OWFGpp+Wk2jRunkJhbg/j3phyx99+BZaI3+nS2EOTPEYw7peW+1RVWnhJro/kPSRL78IR5uHQj9OIw41jvw==","signatures":[{"sig":"MEYCIQCWW7+VIJ+XEKBYPWbzwNiUjDtyE695OLmi1Krvv1pFTQIhAMGj0zobMuY29y2SpCBzks171k/Slwk/oErpgRFPX+hd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3767,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/skWCRA9TVsSAnZWagAACy8P/1HAFcKoSmolaUNn7QAd\nbOeEo3LNOYPvO9U5wV40lhBUAtLaBKR5fxXpOHfalC1qMNhMAulhKoa3+gUd\na0HqPKA9fveJCmGcdpmWYzdyYxZXGe5zgdG5+WwASdKNlkOFVccV9oi3dNjm\nqKUg21IRhZGvmXDuHPVtZ0dVbb/aEiY31QVKS1/xu6K9zZwtJH3wy4JCjXK7\nuHjK0GGFGBfJH/9FsBLkYATxWqRqZ9XRZsVwthHWbnApTfTYCdgkvWamJ9+D\nJZpXeSTTg4qUcjEJnYjnen1jS7ayrogQJyeHzEsr1ekDcQboqC7e5IPqA7Oj\nOtpLiiyOP0K0G8CZVvgIEqxvdzc4NI06EeJRUT+c3r3q9AB5aFGDm1B6JHu0\nFlRyZg3hp80ruQktR6M6fbkqxcb4u//UQbcTOSMrYEuNOUfeQQ7rtZLSz7Li\n25TpL0Kwm8id8zJ+zMO0JdMVO/6JDiZXR136e0uvY9dL6D/9YVKFjD3kY2uc\nc5iw7y7ObmhOzLuserPQVOhgzK1w1qkW3K3Gswnm7H4xdinyZLJ6Hu5oVBp3\n4v0mfIlv/27LVj1nuMJmBXAn94/Bz1a5g8nNIiqo8wIeKxwQXQ1gBy2CoEkT\n7zA2SR2+cc3zDv/MaTmJZAUWQjSenFFqZPEbHD2hnRLKUD3umVsH6PnmQiBb\nUSEr\r\n=q02x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"5.1.1","eslint":"4.19.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-preset-env":"1.7.0","eslint-plugin-react":"7.8.2","eslint-config-airbnb":"16.1.0","eslint-plugin-import":"2.12.0","eslint-plugin-jsx-a11y":"6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.1.1_1526647061690_0.8584611027409914","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"get-contrast-ratio","version":"0.1.2","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.1.2","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"9117e699cb43dba8ec7fc12a789305e4775d7192","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.1.2.tgz","fileCount":12,"integrity":"sha512-LxovwCBAX435FkoC2Su2vz/d5lS9xTswOU00+G4wzyKZwDeOOardS3vlXky2/twCdmm56z2LoP9EZg8R45nV6Q==","signatures":[{"sig":"MEYCIQDEeDW27PaT/Qq5l3j9Wf0F/dW0FAD47VQEcMIH0rL2KwIhANtDDJyzEdHxgXO2FFWLKLg+v/dC48LU5RSAU8nLLN7N","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/s1hCRA9TVsSAnZWagAArxwP/1Lwmf7Gi8BEoG5Rz5RA\netNSsHeBiMtPMNfH3RzBAkLaMcFcvcW4JPM9YDEczK4Kwo7/7kRPp2ZVgXo7\n3RnYazfGFEktZBxFhUOC2f3Uu4i1Nu642/V4upoTOdqK2dgZ6f025nCCxlre\nB3y6dnlXCOPrIjVNo6OAkr5JLcnz5mi35y6wIKIzZYSo58MmCqilYkMJ4ReJ\nKm9RhXo8PpfaodgkncqNFRJOPhRXlCivFsWEPIGnX6Zf6RO1127GgI1X+9k6\ngMc5faBfSdNxeUvSscvE+eQySQyuZTHp25HBSwChp6RiG+Cf1OY5Xmx3HzQ8\niiyW7xcZ2Ks2E/nO76rrtXkQzxR/b6dsfUE3RbZ/VFuMw6BGRFfifYnIL0Iw\nSoX5TQibSopCfc0M60dZGuSD+Rt+YvCcayDIGGi3XcOembszzCAv5fgxImEl\n2OuRnI21Ho277i3ng7Wkipx5M1Eh1VIB8zh2LIWdjKDA2MrCL9y2m+doL/T2\n4V+lpy0uz7MGS2sF4UkLsPeJDr7SMcdU27RCX8zC1gszwwjbbZcBt1HyuP1l\nmj5jwkfnlWr2ZyjxFAc1yHuluP8KxSIjbicGlZQNfeuJO0l9yJFPsnK1a34k\nKoNnspf9buyHMDVvHGxjoy7eopWWExUepD6cEx4y/Kfwz4R18/SLNnZuGWAq\nHyJF\r\n=VsOE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"5.1.1","eslint":"4.19.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-preset-env":"1.7.0","eslint-plugin-react":"7.8.2","eslint-config-airbnb":"16.1.0","eslint-plugin-import":"2.12.0","eslint-plugin-jsx-a11y":"6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.1.2_1526648160931_0.5872909373711157","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"get-contrast-ratio","version":"0.1.3","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.1.3","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"4c30cc9d319c7c4bdf9c5989823200aff65efa86","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.1.3.tgz","fileCount":12,"integrity":"sha512-+EOWLGze5EHhINOhz406SZMFqv+y4yE1328XPVb8N+yYde+vWRexBeLYNVFcbnziiQnR9zOccVATB2aNMYsBwA==","signatures":[{"sig":"MEUCIQDGvU99cUz1WOTPGk01SUKsQ+3EGhS5k/0axIUEBjrP8wIgZch7YnQrvCJi/61Usw4nUaLT8JYW/VUf7HTZbfwN2g4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4729,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/yMQCRA9TVsSAnZWagAATkwP/RZc592skiu0qwCnrBVq\n2Y7ao/Z7heHYbjUsbF8cDdlKMr3wh6l1n9ZZN8UvYhuwqkJrpKbbuoEowscA\nb6I21xrnoeMbpHGQDnkkZz5qIm0X95VHBatolgOZa9TUNDIWOclLxYlqHlDc\nKR+qEUa1rc1lhSMiZHL0ksIg0NTkzKp5kqCqX605elqCYRpsL2Jef+HAiVmv\njcVjE6HKZgKYQgoPk8uMoBgvIiHrwF1o/Ez+xeo7S2Z1zj/DufY/WD1MZ52n\ny7rPQHPlG97GzFyvP096J0m5uUOypQscISlVMHgO7Auuv6i9OrBRYzzKIEOf\nZeQ0YyMTt74WLW5knQvys3+9MRY1MMJ74O6fFm6BZ3oRGE9ZjNxJQNcxxyKk\nTiKGKVae9/bHW9oC/T+jM6gxVC9iHdv9lH4jCAM6Or8NL3WXNNUOFw9PF62w\nakAfrrFQROQi98O9LXN2FNfKWeUTFgF8Bz4aikcBez4Kjrrj9o0aNtDVAHm4\nkRqL347XkuXeS9KlL63xTLeRyST1ebGaVOzZbrKbBKqoCSydbpX1ZrJlyw1Q\ne+s2S4SOyuTnQ9Rm5WhMsyPkrrOPW1ojlRnUAXITfWaSKZcPfJfTVw3hzOuu\n0iJ/RX7k3eUG8QSj3AfxqAfvx7ixikZ+yVBzL9lxzrJEXMKyiJSzDX2x9890\n1pq/\r\n=lt4m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"5.1.1","eslint":"4.19.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-preset-env":"1.7.0","eslint-plugin-react":"7.8.2","eslint-config-airbnb":"16.1.0","eslint-plugin-import":"2.12.0","eslint-plugin-jsx-a11y":"6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.1.3_1526670095676_0.13962104655953622","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"get-contrast-ratio","version":"0.1.4","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.1.4","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"a7a84a4beafd4011dbb1848f3d2e2d009ae76932","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.1.4.tgz","fileCount":12,"integrity":"sha512-ARBdNfXyx5lgH3vq6/XNInR0s1SH9ZOfKah21c58qF4Hj4xwEyrxcSsaRZgv794ajS8KcfFQfqIwOZ2kwIrF2Q==","signatures":[{"sig":"MEUCIGqI5msXeDEb2jCdSa/VUOR7PLfOfSwdDrLqdYMO1Lg6AiEA2h5hgbLqt8Zcp2q8exQRzh8ilUypXIvsZHLBE6Y38Fs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbo5O8CRA9TVsSAnZWagAAQlMP/jg7modMRKz1MhtFK1xy\nCx3KXlqF8hl2bumXsx79bhUwKIJyPmVxa7PMnck8nRkqez5tW1WNvvMjc7Hv\nrwB/njdL3hbVucslr3VmlSL1GNvWBgXUAtyYnAYzexgn5RApv/cFiPMyJQ59\ngDKN15LPxtCPAHjCMEx/q8qv65CLTetCafZm9M3bmWqGuY2QjgUQ0q6441Iw\nnrRJtQEJrQVaW4ihEHXdLi3P8ryIH3cU7PkaJhrkBj45naU2n9+dc8hoeh0z\nfkDsrDAVc8yozFgVEYq0fqIrcUp3zSIpabvOxPhIXJttpDcDes0gEDyIm5de\nOJWjRfa+z/k1DW6wmPmUwwubPVVCF6uMdNMl5L3CVYQm/nKpx/HtWIJt0kar\nEFxbylPo/zJGEYSjigoTz6D7aOiz3ZNRVqVW6egrfhOS9BB+W6QkaDaQuAkW\nplx1TahME54kHmXdfjHDlFjpVNzz4gfzpLUM772zQeCS69eHioDg7Ai2V2M5\nedAGVC8dlVQ+/1QhufEwdYKj094XR6F5ZD0loiQqZpbdcuKpDjt6ar7xUL4F\n/pq/74K1gPR2QNN51AfuXSa9haGpiVEvesUY4iR2odxFEN8oMz2ip26l9We3\n1puowX2Wpe9eqeKSUwp9orzPfhuskrDGmO8qpvGJBSRYroPAOp4xqL9bRjNt\nj2sN\r\n=7yhq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"./node_modules/mocha/bin/mocha --compilers js:babel-core/register","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.1.2"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"5.2.0","eslint":"5.0.1","babel-cli":"6.26.0","babel-core":"6.26.3","babel-preset-env":"1.7.0","eslint-plugin-react":"7.11.1","eslint-config-airbnb":"17.1.0","eslint-plugin-import":"2.13.0","eslint-plugin-jsx-a11y":"6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.1.4_1537446843581_0.9100525497125636","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"get-contrast-ratio","version":"0.2.0","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.2.0","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"fcac5abf4f44359cf8f53b733dd574ed08f54e31","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.2.0.tgz","fileCount":12,"integrity":"sha512-DDxjbKHRfCA4awtEhOcaRRNSAu7a2dvwmokg/t+fSNmuxVILUqnaPkB5mItTyzTTcayHRGW68z/od6oY29aWhQ==","signatures":[{"sig":"MEUCIHKSBdNqg91/XbGWHYoFXCJLPL42jZ1O56Uj7NLgTvM9AiEAiZsNNdbC4X6XSyP6R6/lzFU314gjzMVg1USMJ41qt44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9lh5CRA9TVsSAnZWagAAkSsP/RlKHgCkjCozuA6CxruI\nEJy4V5aKYrLJ/lhV8nqUjnrfzSrLa909GhcN5FP0Xq2/R809CxseLGTygRX3\nZebDbStcg1TbQat2hHiJnmy1CEpA5DYlDmMfXmVkUwDRKYI7ZghjG0+sXAZh\nBdEtKAw03Mt5W2iIAXqwcm/UZ6lHQ2jwOFiPm5GnLY/yR/TxILnWFJSIlGmf\nycUF72Ekqzc1vHGsBHFEge1ZBaX2RZXP7FEszAuPuOVWHbDyJol532evLXjT\nl5o0STS3cpS5YrnwHHmrMdLd9e6q5216QBe2QAFa2FQkOlv65/Fodt7Xk0RQ\nU/4GPl3Y54rNBkAO8prx8XxefXLQx/UpLPVuThBR52AW9GBlQRj+9yqTYs7j\nCMmJnaozSAU9lp2iTge4ymp81ZqTMWA0hkhpW+8/trStA62IHawDziKDjFKF\nw0Dm462Go3zDSL5+molZ1jp4/MzqEy9pIVCXadd3AkKu78ilVNzK+MV4w3yL\n/wCBDwGK9ViaJovkHIM7pTkJY2KUS0r/sWxFSGArsRwRwH7UuhgKwNDS3Y/R\n2FkPaMrwosY4Ifj7KbsBr4JhwAQVwxyIbhuWK0DpFut+XPeyhusBRAg9s4Ju\nXvB9BCgCHIn3ne7RL55IkMULL8c6/nQnRKbRGtIsr8JjSn0Si4F6BSX71bWI\nGWC9\r\n=qgFq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"mocha --require @babel/register","release":"np","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"np":"5.0.2","mocha":"6.1.4","eslint":"5.16.0","@babel/cli":"7.4.4","@babel/core":"7.4.5","@babel/register":"7.4.4","@babel/preset-env":"7.4.5","eslint-plugin-react":"7.13.0","eslint-config-airbnb":"17.1.0","eslint-plugin-import":"2.17.3","eslint-plugin-jsx-a11y":"6.1.2"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.2.0_1559648377002_0.4047561799180637","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"get-contrast-ratio","version":"0.2.1","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@0.2.1","maintainers":[{"name":"misund","email":"just.misund@sol.no"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"3f8e2a9610df2fb55fc2004bfce002ff0aa25c0a","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-0.2.1.tgz","fileCount":12,"integrity":"sha512-lNIpmDIoxlVJsEQ5G/XCxH2YiiXH0ukOZ0ASvPp9ku2f+2AOYG5OXQ9cLgc9p3lNom5gy8JLkfSzi8fZN9LdKg==","signatures":[{"sig":"MEUCIBs/JNG4GcLmwGPfsrmGKn6PA4v6kzgQRFSkpfl6H93+AiEAnnObN26CAD8bhJQoVKgdTaNLcBVB5SMqunT/UZJes5o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLglPCRA9TVsSAnZWagAAwUAP/2xMS5bUZRgh3coEu/70\nR7ch+6/G1AF534pm2VWDZE5+iV+zjk7aKI/tR3UlguvD1VC2dTLMBBesUFQP\nlRt8a9XhwkLiD9tXignbtSPQrSt48nkW2mToO0fEYUX4UUwmkYB3Ltk2GHXi\n9vG4Y543/TiG7xpns1ax+i4H/g6EnBVFta+e+GwWAW/hZD55bZcB+29BQe0T\nt58UC85gtUbFNsW1tW+JYFBqubWM4u1BFquxdcX3yWe3E8D7zNWmItJcTHgK\nLIlmNUeYAovLC38ksW0buR7sM/QHFVzFyMb54ICWCGGy88sF8KpXJS5zEf54\nJfSUtSZU31L3Jf6lgurvQn3wxy98ImFh/KPhrBGe8RR6y766e96otq+7jHZw\nxoAbTdLikQSDsAKOd4c+Ja5+Jl5ASyrGqs7GDPe1XSurrn8Rg5LWeCwvXXV/\n5ZbXOkQrZNIxmAxHYTHMEDSBhS08LGGk78h+2XPocu6zAKiRjB+BtNKzeKZl\nPeHZpIY5WSGe/URIuazmXbIRYc/8DCyFpbn78t0OkD7LEn12W2MxYpHDohbw\noe7vvz0NHwBn/MgSKRa99TNubRkAP50Z8mQV0xKRU2a5tqOlEXteazWdrLah\njVf6nWFxqVdRzf0GPxO603CajFzKI5ABFEID1cHWN1YXdu4p7FzIlO9Cq7jt\nTVSs\r\n=z2+T\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src","test":"yarn lint && yarn mocha","build":"babel src -d build","mocha":"mocha --require @babel/register","release":"np","prepublish":"yarn build && yarn test","postpublish":"git push --tags"},"_npmUser":{"name":"misund","email":"just.misund@sol.no"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"0.3.1"},"_hasShrinkwrap":false,"devDependencies":{"np":"5.0.2","mocha":"6.1.4","eslint":"6.0.1","@babel/cli":"7.5.0","@babel/core":"7.5.4","@babel/register":"7.4.4","@babel/preset-env":"7.5.4","eslint-plugin-react":"7.14.2","eslint-config-airbnb":"17.1.1","eslint-plugin-import":"2.18.0","eslint-plugin-jsx-a11y":"6.2.3"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_0.2.1_1563298126836_0.9431326843697085","host":"s3://npm-registry-packages"}},"1.0.0-0":{"name":"get-contrast-ratio","version":"1.0.0-0","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@1.0.0-0","maintainers":[{"name":"misund","email":"thomas@hemmeligadresse.com"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"86e0ed0888d6d76893d83b0a197e136afa2461ff","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-1.0.0-0.tgz","fileCount":6,"integrity":"sha512-Df7gD3LplHX5WjV/7myTJrsZAOQpYs4YShT4Lmah3q3XyUFE9sYoPukAv87GoC0vkAPJFgzymZNp50fpgGcjsQ==","signatures":[{"sig":"MEUCIQDrvJFk96Rx9w6Fh/5/Afr46CBcqJcf+MQ+Qz/vD+45iQIgHKjngVpAbzRGrQc8njSXWpj0md1pHq+UNxkbAOUGirM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi20UNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLbxAAir1xmNgxM3gDWJiteiwe5+OlAxQ0Sw+zyj88YReLkIlkiRUG\r\nn3IGLkggQ7F4/wbDC5FUsfeUjdFZ97ycv0GWtb5zHtnKzHsxjw5Ayo0c32Yq\r\nl2qU5ljFPSVuLsnvLVBw2z+vRMiDEW2E6yi5I6NX6/7beaubxnG1DLKoIqqi\r\nU6lKRauBkJPbZH3KwKynl7041c27BTObn3W4e5HKDZ+iMHtYoYlWumgtnYut\r\nSrIy9iVNnmpaC+m/W5yI8g9ils+rbeoPSLolGgTlNLuJd3UAu7V75M0UqsEy\r\nZuEStLCK/RJYWa04F2/2gi7M/rlnJRBj9pn3tAKtia2hpLSu0GgOSDjg5lWj\r\nfnG28xsv75hk7KrkCrcNJNxCEnMGZLPJyGNR9ZIUizfBXcT55LTI+mywlEE6\r\nuBWx+drLC1g1GzENOEg5IKYSph9HT3tMdfYxb/kXJx5GZrggXZRkEIOGvHZW\r\n2YrruN4lE5NnlcEG3wWn0XTg93v6vzos2Xh64XcOuvtz3UPK1RCOqsNr0K4S\r\nKIyyOkEmN4N45UlhnDb+f7Wyw+fs0XUbY9J/9PxBpSmU7ryHDNXeISl2gODG\r\ndP/eFwkLSV8twrPRPy4nGzXQHxGyg0pC36kEtBAylN668h4RqQvMjzpQ3txf\r\ndd10ZiMzemYYsGwuYDQp7PIaMMdVDjsuwPg=\r\n=6utN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","scripts":{"lint":"eslint --max-warnings=0 src/**/*.ts","test":"yarn lint && yarn mocha","build":"tsc","mocha":"mocha","prepare":"yarn build","release":"np","preversion":"yarn test","prepublishOnly":"yarn test"},"_npmUser":{"name":"misund","email":"thomas@hemmeligadresse.com"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"2.0.0-0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"7.6.2","mocha":"10.0.0","eslint":"8.20.0","ts-mocha":"10.0.0","typescript":"4.7.4","@types/mocha":"9.1.1","@types/parse-color":"1.0.1","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.26.0","eslint-config-prettier":"8.5.0","@typescript-eslint/parser":"5.30.7","@typescript-eslint/eslint-plugin":"5.30.7"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_1.0.0-0_1658537229717_0.1884720291038362","host":"s3://npm-registry-packages"}},"1.0.0-1":{"name":"get-contrast-ratio","version":"1.0.0-1","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","_id":"get-contrast-ratio@1.0.0-1","maintainers":[{"name":"misund","email":"thomas@hemmeligadresse.com"}],"homepage":"https://github.com/misund/get-contrast-ratio#readme","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"dist":{"shasum":"784aa2ff05184c1c5da1b810724e2a72f80268b7","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-1.0.0-1.tgz","fileCount":6,"integrity":"sha512-SUpV4aazQtmGwScljm3eq4XgR7KwpzNG1BAfB0tnaRlRX5omDCmy2JljRtWTEpJe1kh+nb3olJ/ZDKqgb7p/eA==","signatures":[{"sig":"MEYCIQCbe2W5Aw9P3WP4L8SUDCuU9JLWLj/Hl21bhMs10qUvLwIhAMoyow6yh3M4hWVDJaHsWnqEHJdXB4rvj7Gb2zY+dnMk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3757},"main":"build/index.js","type":"module","types":"build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.js"}},"scripts":{"lint":"eslint --max-warnings=0 src/**/*.ts","test":"yarn lint && yarn mocha","build":"tsc","mocha":"mocha","prepare":"yarn build","release":"np","preversion":"yarn test","prepublishOnly":"yarn test"},"_npmUser":{"name":"misund","email":"thomas@hemmeligadresse.com"},"repository":{"url":"git+https://github.com/misund/get-contrast-ratio.git","type":"git"},"description":"Calculate contrast ratio between two CSS color strings.","directories":{},"dependencies":{"get-relative-luminance":"2.0.0-1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"10.2.0","tsx":"4.19.2","mocha":"11.7.1","eslint":"9.32.0","@eslint/js":"9.32.0","typescript":"5.9.2","@types/node":"22.10.5","@types/mocha":"10.0.10","@eslint/eslintrc":"3.3.1","@types/parse-color":"1.0.3","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.32.0","eslint-config-prettier":"10.1.8","@typescript-eslint/parser":"7.18.0","@typescript-eslint/eslint-plugin":"7.18.0"},"_npmOperationalInternal":{"tmp":"tmp/get-contrast-ratio_1.0.0-1_1760135137400_0.8103959157721721","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"get-contrast-ratio","version":"1.0.0","description":"Calculate contrast ratio between two CSS color strings.","type":"module","main":"build/index.js","types":"build/index.d.ts","exports":{".":{"types":"./build/index.d.ts","import":"./build/index.js"}},"scripts":{"build":"tsc","lint":"eslint --max-warnings=0 src/**/*.ts","mocha":"mocha","test":"yarn lint && yarn mocha","prepare":"yarn build","prepublishOnly":"yarn test","preversion":"yarn test","release":"np"},"repository":{"type":"git","url":"git+https://github.com/misund/get-contrast-ratio.git"},"keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"homepage":"https://github.com/misund/get-contrast-ratio#readme","devDependencies":{"@eslint/eslintrc":"3.3.5","@eslint/js":"10.0.1","@types/mocha":"10.0.10","@types/node":"25.6.0","@types/parse-color":"1.0.3","@typescript-eslint/eslint-plugin":"7.18.0","@typescript-eslint/parser":"7.18.0","eslint":"9.39.2","eslint-config-airbnb":"19.0.4","eslint-config-prettier":"10.1.8","eslint-plugin-import":"2.32.0","mocha":"11.7.5","np":"11.0.3","tsx":"4.21.0","typescript":"5.9.3"},"dependencies":{"get-relative-luminance":"2.0.0"},"_id":"get-contrast-ratio@1.0.0","dist":{"shasum":"da1830a3086311ca970d918e06dd29bac7fbda2a","integrity":"sha512-B3YD1yhluPUcVrMUMJBhoZxrP491j8KYDtMibt5dXzGhuAALPHWw0h7JR/FbYZqtMi7fak+I8d9iVEnALAyyLg==","tarball":"https://registry.npmjs.org/get-contrast-ratio/-/get-contrast-ratio-1.0.0.tgz","fileCount":9,"unpackedSize":4516,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBJ5IevUrnHFYf7CIHu4vyDPQdzZE1hf6hdi03f6OkZVAiEA0p6U666gE5EHzlAko6VhqcqcY9xZJEoZxQxCkcSbeXQ="}]},"_npmUser":{"name":"misund","email":"thomas@hemmeligadresse.com"},"directories":{},"maintainers":[{"name":"misund","email":"thomas@hemmeligadresse.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-contrast-ratio_1.0.0_1775909069723_0.7431250060876731"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-18T12:37:41.689Z","modified":"2026-04-11T12:04:29.998Z","0.1.1":"2018-05-18T12:37:41.759Z","0.1.2":"2018-05-18T12:56:01.031Z","0.1.3":"2018-05-18T19:01:35.857Z","0.1.4":"2018-09-20T12:34:03.740Z","0.2.0":"2019-06-04T11:39:37.142Z","0.2.1":"2019-07-16T17:28:46.945Z","1.0.0-0":"2022-07-23T00:47:09.918Z","1.0.0-1":"2025-10-10T22:25:37.596Z","1.0.0":"2026-04-11T12:04:29.878Z"},"bugs":{"url":"https://github.com/misund/get-contrast-ratio/issues"},"author":{"name":"Just Thomas Hiorth Misund"},"license":"GPL-3.0","homepage":"https://github.com/misund/get-contrast-ratio#readme","keywords":["luminance","relative-luminance","contrast","contrast-ratio","wcag","accessibility","a11y","color","color-contrast"],"repository":{"type":"git","url":"git+https://github.com/misund/get-contrast-ratio.git"},"description":"Calculate contrast ratio between two CSS color strings.","maintainers":[{"name":"misund","email":"thomas@hemmeligadresse.com"}],"readme":"# Get contrast ratio\n\n`get-contrast-ratio` calculates the contrast ratio between two CSS color's\nrelative luminances based on\n[this definition from W3C](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef).\n\nIt doesn't handle transparency as of yet.\n\nThis is the contrast ratio you'll need to care about to pass WCAG requirements.\n\n## Installation\n\n```\n$ npm install get-contrast-ratio\n```\n\n## Usage\n\n```js\nimport getContrastRatio from 'get-contrast-ratio';\n\ngetContrastRatio('black', 'white'); // 21\ngetContrastRatio('rgb(0,0,0)', 'rgb(255,255,255)'); // 21\ngetContrastRatio('black', '#000'); // 1\ngetContrastRatio('white', '#fff'); // 1\ngetContrastRatio('hsl(50, 30%, 40%)', 'hsl(50, 30%, 40%)'): // 1\n\n```\n\n## Signature\n\n`(color1: string, color2: string } = {}) => number`\n\nThe string parameters are more specifically strings that can be parsed as colors in CSS.\n\nThe return value is a number with two decimals in the range `1 <= number <= 21`.\n\n## Contributing\n\nI appreciate your issues and PRs [on Github](https://github.com/misund/get-contrast-ratio)!\n\n### Testing\n\n```\nyarn build && yarn test\n```\n\n### Releasing\n\nThis project uses [np](https://github.com/sindresorhus/np).\n\n1. Make sure your changes are on main\n2. Run `yarn release`\n3. Follow the interactive release guide\n","readmeFilename":"README.md"}