{"id":16908443,"url":"https://github.com/gilbarbara/colorizr","last_synced_at":"2026-04-13T18:00:51.932Z","repository":{"id":50525944,"uuid":"115972467","full_name":"gilbarbara/colorizr","owner":"gilbarbara","description":"Color conversion, manipulation, comparison and analysis","archived":false,"fork":false,"pushed_at":"2026-04-13T13:53:37.000Z","size":1432,"stargazers_count":39,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-13T14:26:06.757Z","etag":null,"topics":["analysis","color","comparison","conversion","manipulation"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/github/gilbarbara/colorizr/tree/main/demo","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gilbarbara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-02T03:51:32.000Z","updated_at":"2026-03-15T17:42:58.000Z","dependencies_parsed_at":"2024-06-19T00:25:58.074Z","dependency_job_id":"d2f14722-dfd1-4768-b829-2e9273817a10","html_url":"https://github.com/gilbarbara/colorizr","commit_stats":{"total_commits":42,"total_committers":1,"mean_commits":42.0,"dds":0.0,"last_synced_commit":"e2c0d90f5265af6186a173c53899dfb20e014cf5"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/gilbarbara/colorizr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbarbara%2Fcolorizr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbarbara%2Fcolorizr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbarbara%2Fcolorizr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbarbara%2Fcolorizr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gilbarbara","download_url":"https://codeload.github.com/gilbarbara/colorizr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gilbarbara%2Fcolorizr/sbom","scorecard":{"id":426696,"data":{"date":"2025-08-11","repo":{"name":"github.com/gilbarbara/colorizr","commit":"33fc3438b1697563b077f25cd9285e3201054c27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Maintained","score":1,"reason":"0 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/gilbarbara/colorizr/main.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/main.yml:19"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (14) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T02:23:09.720Z","repository_id":50525944,"created_at":"2025-08-19T02:23:09.721Z","updated_at":"2025-08-19T02:23:09.721Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","color","comparison","conversion","manipulation"],"created_at":"2024-10-13T18:51:29.646Z","updated_at":"2026-04-13T18:00:51.917Z","avatar_url":"https://github.com/gilbarbara.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg alt=\"colorizr logo\" src=\"docs/public/logo.svg\" height=\"120\"\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/colorizr\"\u003e\u003cimg src=\"https://badge.fury.io/js/colorizr.svg\" alt=\"NPM version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/gilbarbara/colorizr/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/gilbarbara/colorizr/actions/workflows/ci.yml/badge.svg\" alt=\"CI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/summary/new_code?id=gilbarbara_colorizr\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=gilbarbara_colorizr\u0026metric=alert_status\" alt=\"Quality Gate Status\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://sonarcloud.io/summary/new_code?id=gilbarbara_colorizr\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=gilbarbara_colorizr\u0026metric=coverage\" alt=\"Coverage\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Colorizr\n\nA modern color library focused on perceptual correctness and accessibility.\n\n- 🏖 **Easy to use**: Works with Hex, HSL, RGB, OKLAB, and OKLCH.\n- ♿️ **Accessibility**: WCAG 2.x contrast and APCA (WCAG 3.0) support.\n- 🎨 **Design Systems**: Generate perceptual color scales with variants.\n- 🖥 **Modern Displays**: P3 gamut optimization and OkLCH operations.\n- 🟦 **TypeScript**: Full type safety, zero dependencies.\n\n📖 **[Official Website](https://gilbarbara.github.io/colorizr)**\n\n## Setup\n\n```bash\nnpm i colorizr\n```\n\n## Generating Scales \u0026 Palettes\n\nBuild design system color scales with customizable variants:\n\n```typescript\nimport { scale, palette, scheme } from 'colorizr';\n\nscale('#3366ff');\n// { 50: '#f0f5ff', 100: '#e4edff', ..., 900: '#06009a', 950: '#020052' }\n\npalette('#ff0044');\n// ['#ff0044', '#ffbb00', '#44ff00', '#00ffbb', '#0044ff', '#bb00ff']\n\nscheme('#ff0044', 'triadic');\n// ['#ff0044', '#44ff00', '#0044ff']\n```\n\n## Accessibility \u0026 Contrast\n\nAnalyze contrast ratios and find readable text colors:\n\n```typescript\nimport { contrast, readableColor, compare, apcaContrast } from 'colorizr';\n\ncontrast('#1a1a2e', '#ffffff'); // 17.05\nreadableColor('#ff0044'); // '#ffffff'\napcaContrast('#000000', '#ffffff'); // 106.04067\n\ncompare('#ff0044', '#ffffff');\n// { contrast: 3.94, normalAA: false, largeAA: true, ... }\n```\n\n## Manipulating Colors\n\nAdjust lightness, saturation, hue, and opacity:\n\n```typescript\nimport { lighten, darken, saturate, mix, rotate } from 'colorizr';\n\nlighten('#ff0044', 20); // '#ff668f'\ndarken('#ff0044', 10);  // '#cc0036'\nrotate('#ff0044', 180); // '#00ffbb'\n\nmix('#ff0044', '#0066ff');                         // '#bc34d7'\nmix('#ff0044', '#0066ff', 0.5, { space: 'hsl' });  // '#aa00ff'\n```\n\n## Converting Colors\n\nConvert between all supported color spaces:\n\n```typescript\nimport { convertCSS, hex2oklch, parseCSS } from 'colorizr';\n\nconvertCSS('#ff0044', 'oklch'); // 'oklch(63.269% 0.25404 19.902)'\nconvertCSS('#ff0044', 'hsl');   // 'hsl(344 100% 50%)'\n\nhex2oklch('#ff0044');\n// { l: 0.63269, c: 0.25404, h: 19.90224 }\n\nparseCSS('hsl(344 100% 50%)');\n// { h: 344, s: 100, l: 50 }\n```\n\n## Class API\n\nCreate an instance to work with a single color:\n\n```typescript\nimport Colorizr from 'colorizr';\n\nconst color = new Colorizr('#ff0044');\ncolor.luminance;      // 0.2168\ncolor.chroma;         // 1\ncolor.readableColor;  // '#ffffff'\ncolor.lighten(20);    // '#ff668f'\ncolor.mix('#0066ff'); // '#bc34d7'\n```\n\n📖 **[Read the full documentation](https://gilbarbara.github.io/colorizr)**\n\n## Credits / References\n\n[color.js](https://github.com/color-js/color.js)  \n[chroma-js](https://gka.github.io/chroma.js/)  \n[calculating-color-contrast](https://24ways.org/2010/calculating-color-contrast/)  \n[Colour Contrast Check](https://snook.ca/technical/colour_contrast/colour.html)  \n[Converting Color Spaces in typescript](https://css-tricks.com/converting-color-spaces-in-typescript/)  \n[A perceptual color space for image processing](https://bottosson.github.io/posts/oklab/)  \n[SAPC-APCA](https://github.com/Myndex/SAPC-APCA)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbarbara%2Fcolorizr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgilbarbara%2Fcolorizr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgilbarbara%2Fcolorizr/lists"}