[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5624":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":36,"discoverSource":37},5624,"pastel","sharkdp\u002Fpastel","sharkdp","A command-line tool to generate, analyze, convert and manipulate colors","",null,"Rust",6399,127,26,0,2,9,49,11,37.32,"Apache License 2.0",false,"master",[25,26,27,28,29,30,31,32],"cli","color-converter","color-space","colors","command-line","rust","terminal","tool","2026-06-12 02:01:13","# pastel\n\n[![Build Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fsharkdp\u002Fpastel\u002FCICD.yml?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\u002Factions)\n[![](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fsharkdp\u002Fpastel?colorB=d7a400&style=flat-square)](https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\u002Freleases)\n[![](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fl\u002Fpastel.svg?colorB=ff7155&style=flat-square)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fpastel)\n[![](https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fv\u002Fpastel.svg?colorB=ff69b4&style=flat-square)](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fpastel)\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\u002Fpastel.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 \u002F 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:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\u002Freleases) and install it via `dpkg`:\n``` bash\nwget \"https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\u002Freleases\u002Fdownload\u002Fv0.12.0\u002Fpastel_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:\u002F\u002Farchlinux.org\u002Fpackages\u002Fextra\u002Fx86_64\u002Fpastel\u002F) repositories:\n```\nsudo pacman -S pastel\n```\n\n### On Nix\n\nYou can install `pastel` from the [Nix package](https:\u002F\u002Fgithub.com\u002FNixOS\u002Fnixpkgs\u002Fblob\u002Fmaster\u002Fpkgs\u002Fapplications\u002Fmisc\u002Fpastel\u002Fdefault.nix):\n```\nnix-env --install pastel\n```\n\n### On MacOS\n\nYou can install `pastel` via [Homebrew](https:\u002F\u002Fformulae.brew.sh\u002Fformula\u002Fpastel)\n```\nbrew install pastel\n```\n\n### On Windows\n\nYou can install `pastel` via [Scoop](https:\u002F\u002Fgithub.com\u002FScoopInstaller\u002FMain\u002Fblob\u002Fmaster\u002Fbucket\u002Fpastel.json)\n```\nscoop install pastel\n```\n\n#### With Winget\n\nYou can install `pastel` via [Winget](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fwindows\u002Fpackage-manager\u002F):\n```bash\nwinget install sharkdp.pastel\n```\n\n### Via snap package\n\n[Get it from the Snap Store](https:\u002F\u002Fsnapcraft.io\u002Fpastel):\n```\nsudo snap install pastel\n```\n\n### On NetBSD\nUsing the package manager:\n```\npkgin install pastel\n```\n\nFrom source:\n```\ncd \u002Fusr\u002Fpkgsrc\u002Fgraphics\u002Fpastel\nmake install\n```\n\n### On other distributions\n\nCheck out the [release page](https:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\u002Freleases) for binary builds.\n\n### Via cargo (source)\n\nIf you do not have cargo, install using [rust's installation documentation](https:\u002F\u002Fdoc.rust-lang.org\u002Fbook\u002Fch01-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:\u002F\u002Fgithub.com\u002Fsharkdp\u002Fpastel\ncargo install --path .\u002Fpastel\n```\n\n## Resources\n\nInteresting Wikipedia pages:\n\n* [Color difference](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FColor_difference)\n* [CIE 1931 color space](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCIE_1931_color_space)\n* [CIELAB color space](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FCIELAB_color_space)\n* [Line of purples](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FLine_of_purples)\n* [Impossible color](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FImpossible_color)\n* [sRGB](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FSRGB)\n* [Color theory](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FColor_theory)\n* [Eigengrau](https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FEigengrau)\n\nColor names:\n\n* [XKCD Color Survey Results](https:\u002F\u002Fblog.xkcd.com\u002F2010\u002F05\u002F03\u002Fcolor-survey-results\u002F)\n* [Peachpuffs and Lemonchiffons - talk about named colors](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=HmStJQzclHc)\n* [List of CSS color keywords](https:\u002F\u002Fwww.w3.org\u002FTR\u002FSVG11\u002Ftypes.html#ColorKeywords)\n\nMaximally distinct colors:\n\n* [How to automatically generate N \"distinct\" colors?](https:\u002F\u002Fstackoverflow.com\u002Fq\u002F470690\u002F704831)\n* [Publication on two algorithms to generate (maximally) distinct colors](http:\u002F\u002Fciteseerx.ist.psu.edu\u002Fviewdoc\u002Fsummary?doi=10.1.1.65.2790)\n\nOther articles and videos:\n\n* [Color Matching](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=82ItpxqPP4I)\n* [Introduction to color spaces](https:\u002F\u002Fciechanow.ski\u002Fcolor-spaces\u002F)\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n\nat your option.\n","pastel 是一个命令行工具，用于生成、分析、转换和操作颜色。它支持多种颜色格式和色彩空间，包括RGB（sRGB）、HSL、CIELAB、CIELCh以及ANSI 8位和24位表示。核心功能包括颜色饱和度调整、混合、提亮等，并且这些功能可以通过管道组合使用以实现复杂的效果。此外，用户可以指定颜色输入方式，既可以直接在命令中给出，也可以从标准输入读取。该工具非常适合需要在终端环境下进行颜色处理的场景，如开发人员编写脚本时对文本颜色的定制化处理、设计师快速获取或转换颜色值等。","2026-06-11 03:04:24","top_language"]