An open API service indexing awesome lists of open source software.

https://github.com/queer/rgb

cli hex colour helper
https://github.com/queer/rgb

Last synced: about 1 year ago
JSON representation

cli hex colour helper

Awesome Lists containing this project

README

          

# rgb

a small tool for processing RGB colours `#rrggbb` in the terminal.

## usage

```bash
git:(mistress) 5 | ▶ cat /tmp/colours2.txt | rgb
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
#4f79c3: hsv(218, 151, 195) luminance_rgb(0.46044552) luminance_hsv(0.53829294)
#ee253f: hsv(352, 215, 238) luminance_rgb(0.32003844) luminance_hsv(0.5398693)
#c42e74: hsv(332, 195, 196) luminance_rgb(0.32527056) luminance_hsv(0.47474048)
rgb ranges: r(79..238) g(37..121) b(63..195)
hsv ranges: h(218..352) s(151..215) v(195..238)
luminance ranges: rgb(0.32003844..0.46044552) hsv(0.47474048..0.5398693)
git:(mistress) 5 | ▶
```