pastel-format(1)

πŸ“¦
version 0.12.0 Β· 2 versions
, in epel 9, fedora 43, fedora 44, ubuntu stonking

πŸ’– pastel-format(1) πŸ’–

okay bestie, welcome to pastel-format β€” it lives in the General Commands Manual section and it is literally the glow-up station for your colors ✨


✨ NAME ✨

pastel-format β€” convert a color to the given format πŸŽ€


🌸 SYNOPSIS 🌸

pastel format [-h|--help] [type] [color]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole vibe is: you hand it a color (or a whole lil pile of colors) and it converts them into whatever specific format you're feeling that day πŸ’…

Example, bestie:

pastel random -n 20 | pastel format rgb

πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” print help (see a summary with -h) 🫢
  • [type] [default: hex] β€” the output format type you want. heads up though: the ansi-*-escapecode formats print ansi escape sequences to the terminal, and those will not be visible unless something else gets printed in addition 😭 no cap.

Possible values:

  • rgb
  • rgb-float
  • rgb-r
  • rgb-g
  • rgb-b
  • hex
  • hsl
  • hsl-hue
  • hsl-saturation
  • hsl-lightness
  • hsv
  • hsv-hue
  • hsv-saturation
  • hsv-value
  • lch
  • lch-lightness
  • lch-chroma
  • lch-hue
  • oklch
  • oklch-lightness
  • oklch-chroma
  • oklch-hue
  • lab
  • lab-a
  • lab-b
  • oklab
  • oklab-l
  • oklab-a
  • oklab-b
  • luminance
  • brightness
  • ansi-8bit
  • ansi-24bit
  • ansi-8bit-value
  • ansi-8bit-escapecode
  • ansi-24bit-escapecode
  • cmyk
  • name
  • [color] β€” the color itself πŸ’– colors can be specified in sooooo many different formats, such as #RRGGBB, RRGGBB, #RGB, 'rgb(…, …, …)', 'hsl(…, …, …)', 'gray(…)', or literally just by the name of the color.

The identifier - can be used to read a single color from standard input. Also, the special identifier pick can be used to run an external color picker to choose a color 🧚

If no color argument is specified, colors will be read from standard input.

Examples (all of these specify the same color, periodt):

  • lightslategray
  • '#778899'
  • 778899
  • 789
  • 'rgb(119, 136, 153)'
  • '119,136,153'
  • 'hsl(210, 14.3%, 53.3%)'

Alpha transparency is also supported 🫢:

  • '#77889980'
  • 'rgba(119, 136, 153, 0.5)'
  • 'hsla(210, 14.3%, 53.3%, 50%)'

and that's the whole page, bestie!! the footer lowkey said format / pastel-format(1) and it's dated to whenever this manual page was built β€” so yeah, go convert some colors, you absolute icon πŸ’…βœ¨

πŸ“¦ where this page comes from
  • epel 9: pastel 0.12.0-3.el9 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
  • fedora 43: pastel 0.12.0-3.fc43 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
  • fedora 44: pastel 0.12.0-3.fc44 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
  • ubuntu stonking: pastel 0.12.0-2 Β· MIT OR Apache-2.0
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms