{"id":13478759,"url":"https://github.com/sharkdp/pastel","last_synced_at":"2026-02-14T15:00:57.063Z","repository":{"id":37548332,"uuid":"189867161","full_name":"sharkdp/pastel","owner":"sharkdp","description":"A command-line tool to generate, analyze, convert and manipulate colors","archived":false,"fork":false,"pushed_at":"2025-12-01T03:29:28.000Z","size":9632,"stargazers_count":6133,"open_issues_count":27,"forks_count":123,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-12-28T13:51:31.724Z","etag":null,"topics":["cli","color-converter","color-space","colors","command-line","rust","terminal","tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharkdp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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},"funding":{"github":"sharkdp"}},"created_at":"2019-06-02T16:04:32.000Z","updated_at":"2025-12-25T09:07:34.000Z","dependencies_parsed_at":"2024-01-06T07:49:09.416Z","dependency_job_id":"3654c531-b98a-48c2-932e-9e16b5833999","html_url":"https://github.com/sharkdp/pastel","commit_stats":{"total_commits":454,"total_committers":36,"mean_commits":12.61111111111111,"dds":"0.37665198237885467","last_synced_commit":"95f9e7d344d5285f91134e3ad02faf1ee2f2cbc8"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/sharkdp/pastel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpastel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpastel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpastel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpastel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharkdp","download_url":"https://codeload.github.com/sharkdp/pastel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharkdp%2Fpastel/sbom","scorecard":{"id":816488,"data":{"date":"2025-08-11","repo":{"name":"github.com/sharkdp/pastel","commit":"3e76053e456ea603e26181f229af2be54a3ae223"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Code-Review","score":6,"reason":"Found 8/12 approved changesets -- score normalized to 6","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":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CICD.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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:88: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:99: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:301: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CICD.yml:307: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:321: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CICD.yml:336: update your workflow using https://app.stepsecurity.io/secureworkflow/sharkdp/pastel/CICD.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE: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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.10.0 not signed: https://api.github.com/repos/sharkdp/pastel/releases/173916389","Warn: release artifact v0.9.0 not signed: https://api.github.com/repos/sharkdp/pastel/releases/67927763","Warn: release artifact v0.8.1 not signed: https://api.github.com/repos/sharkdp/pastel/releases/46023837","Warn: release artifact v0.8.0 not signed: https://api.github.com/repos/sharkdp/pastel/releases/26871907","Warn: release artifact v0.7.1 not signed: https://api.github.com/repos/sharkdp/pastel/releases/24157536","Warn: release artifact v0.10.0 does not have provenance: https://api.github.com/repos/sharkdp/pastel/releases/173916389","Warn: release artifact v0.9.0 does not have provenance: https://api.github.com/repos/sharkdp/pastel/releases/67927763","Warn: release artifact v0.8.1 does not have provenance: https://api.github.com/repos/sharkdp/pastel/releases/46023837","Warn: release artifact v0.8.0 does not have provenance: https://api.github.com/repos/sharkdp/pastel/releases/26871907","Warn: release artifact v0.7.1 does not have provenance: https://api.github.com/repos/sharkdp/pastel/releases/24157536"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375"],"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-23T14:22:42.131Z","repository_id":37548332,"created_at":"2025-08-23T14:22:42.131Z","updated_at":"2025-08-23T14:22:42.131Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29444108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T12:43:28.304Z","status":"ssl_error","status_checked_at":"2026-02-14T12:43:14.160Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cli","color-converter","color-space","colors","command-line","rust","terminal","tool"],"created_at":"2024-07-31T16:02:02.368Z","updated_at":"2026-02-14T15:00:57.056Z","avatar_url":"https://github.com/sharkdp.png","language":"Rust","funding_links":["https://github.com/sponsors/sharkdp"],"categories":["Setting up awesome2k","Rust","Graphics","Command Line","Tools","Uncategorized","cli","\u003ca name=\"graphics\"\u003e\u003c/a\u003eGraphics","Media","Developer Utilities","Command line - Linux","Color","Dev-Utilities"],"sub_categories":["Theming","Image Conversion","Dependency Management","Rust","Uncategorized","Learning resources","Open USP Tsukubai"],"readme":"# pastel\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/sharkdp/pastel/CICD.yml?style=flat-square)](https://github.com/sharkdp/pastel/actions)\n[![](https://img.shields.io/github/v/release/sharkdp/pastel?colorB=d7a400\u0026style=flat-square)](https://github.com/sharkdp/pastel/releases)\n[![](https://img.shields.io/crates/l/pastel.svg?colorB=ff7155\u0026style=flat-square)](https://crates.io/crates/pastel)\n[![](https://img.shields.io/crates/v/pastel.svg?colorB=ff69b4\u0026style=flat-square)](https://crates.io/crates/pastel)\n\n\n`pastel` is a command-line tool to generate, analyze, convert and manipulate colors. It supports many different color formats and color spaces like RGB (sRGB), HSL, CIELAB, CIELCh as well as ANSI 8-bit and 24-bit representations.\n\n## In action\n\n![pastel in action](doc/pastel.gif)\n\n## Tutorial\n\n### Getting help\n\n`pastel` provides a number of commands like `saturate`, `mix` or `paint`. To see a complete list, you can simply run\n``` bash\npastel\n```\nTo get more information about a specific subcommand (say `mix`), you can call `pastel mix -h` or `pastel help mix`.\n\n### Composition\n\nMany `pastel` commands can be composed by piping the output of one command to another, for example:\n``` bash\npastel random | pastel mix red | pastel lighten 0.2 | pastel format hex\n```\n\n### Specifying colors\n\nColors can be specified in many different formats:\n```\nlightslategray\n'#778899'\n778899\n789\n'rgb(119, 136, 153)'\n'119,136,153'\n'hsl(210, 14.3%, 53.3%)'\n```\n\nColors can be passed as positional arguments, for example:\n```\npastel lighten 0.2 orchid orange lawngreen\n```\nThey can also be read from standard input. So this is equivalent:\n```\nprintf \"%s\\n\" orchid orange lawngreen | pastel lighten 0.2\n```\nYou can also explicitly specify which colors you want to read from the input. For example, this mixes `red` (which is read from STDIN) with `blue` (which is passed on the command line):\n```\npastel color red | pastel mix - blue\n```\n\n### Use cases and demo\n\n#### Converting colors from one format to another\n\n``` bash\npastel format hsl ff8000\n```\n\n#### Show and analyze colors on the terminal\n\n``` bash\npastel color \"rgb(255,50,127)\"\n\npastel color 556270 4ecdc4 c7f484 ff6b6b c44d58\n```\n\n#### Pick a color from somewhere on the screen\n\n``` bash\npastel pick\n```\n\n#### Generate a set of N visually distinct colors\n\n```\npastel distinct 8\n```\n\n#### Get a list of all X11 / CSS color names\n\n``` bash\npastel list\n```\n\n#### Name a given color\n\n``` bash\npastel format name 44cc11\n```\n\n#### Print colorized text from a shell script\n\n``` bash\nbg=\"hotpink\"\nfg=\"$(pastel textcolor \"$bg\")\"\n\npastel paint \"$fg\" --on \"$bg\" \"well readable text\"\n```\n\n``` bash\npastel paint -n black --on red --bold \"   ERROR!   \"\necho \" A serious error\"\n\npastel paint -n black --on yellow --bold \"  WARNING!  \"\necho \" A warning message\"\n\npastel paint -n black --on limegreen --bold \"    INFO    \"\necho -n \" Informational message with a \"\necho -n \"highlighted\" | pastel paint -n default --underline\necho \" word\"\n```\n\n## Installation\n\n### On Debian-based systems\n\nYou can download the latest Debian package from the [release page](https://github.com/sharkdp/pastel/releases) and install it via `dpkg`:\n``` bash\nwget \"https://github.com/sharkdp/pastel/releases/download/v0.12.0/pastel_0.12.0_amd64.deb\"\nsudo dpkg -i pastel_0.12.0_amd64.deb\n```\n\nAlternatively, `pastel` is available in the official Debian repositories (currently in testing and unstable):\n```bash\nsudo apt update\nsudo apt install pastel\n```\n\n### On Arch Linux\n\nYou can install `pastel` from the [Extra](https://archlinux.org/packages/extra/x86_64/pastel/) repositories:\n```\nsudo pacman -S pastel\n```\n\n### On Nix\n\nYou can install `pastel` from the [Nix package](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/pastel/default.nix):\n```\nnix-env --install pastel\n```\n\n### On MacOS\n\nYou can install `pastel` via [Homebrew](https://formulae.brew.sh/formula/pastel)\n```\nbrew install pastel\n```\n\n### On Windows\n\nYou can install `pastel` via [Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/pastel.json)\n```\nscoop install pastel\n```\n\n#### With Winget\n\nYou can install `pastel` via [Winget](https://learn.microsoft.com/en-us/windows/package-manager/):\n```bash\nwinget install sharkdp.pastel\n```\n\n### Via snap package\n\n[Get it from the Snap Store](https://snapcraft.io/pastel):\n```\nsudo snap install pastel\n```\n\n### On NetBSD\nUsing the package manager:\n```\npkgin install pastel\n```\n\nFrom source:\n```\ncd /usr/pkgsrc/graphics/pastel\nmake install\n```\n\n### On other distributions\n\nCheck out the [release page](https://github.com/sharkdp/pastel/releases) for binary builds.\n\n### Via cargo (source)\n\nIf you do not have cargo, install using [rust's installation documentation](https://doc.rust-lang.org/book/ch01-01-installation.html).\n\nIf you have Rust 1.83 or higher, you can install `pastel` from source via `cargo`:\n```\ncargo install pastel\n```\n\nAlternatively, you can install `pastel` directly from this repository by using\n```\ngit clone https://github.com/sharkdp/pastel\ncargo install --path ./pastel\n```\n\n## Resources\n\nInteresting Wikipedia pages:\n\n* [Color difference](https://en.wikipedia.org/wiki/Color_difference)\n* [CIE 1931 color space](https://en.wikipedia.org/wiki/CIE_1931_color_space)\n* [CIELAB color space](https://en.wikipedia.org/wiki/CIELAB_color_space)\n* [Line of purples](https://en.wikipedia.org/wiki/Line_of_purples)\n* [Impossible color](https://en.wikipedia.org/wiki/Impossible_color)\n* [sRGB](https://en.wikipedia.org/wiki/SRGB)\n* [Color theory](https://en.wikipedia.org/wiki/Color_theory)\n* [Eigengrau](https://en.wikipedia.org/wiki/Eigengrau)\n\nColor names:\n\n* [XKCD Color Survey Results](https://blog.xkcd.com/2010/05/03/color-survey-results/)\n* [Peachpuffs and Lemonchiffons - talk about named colors](https://www.youtube.com/watch?v=HmStJQzclHc)\n* [List of CSS color keywords](https://www.w3.org/TR/SVG11/types.html#ColorKeywords)\n\nMaximally distinct colors:\n\n* [How to automatically generate N \"distinct\" colors?](https://stackoverflow.com/q/470690/704831)\n* [Publication on two algorithms to generate (maximally) distinct colors](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.65.2790)\n\nOther articles and videos:\n\n* [Color Matching](https://www.youtube.com/watch?v=82ItpxqPP4I)\n* [Introduction to color spaces](https://ciechanow.ski/color-spaces/)\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Fpastel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharkdp%2Fpastel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharkdp%2Fpastel/lists"}