#color #hex-color #utility #color-picker #oklab #command-line-arguments #oklch

bin+lib oklch-color-picker

A standalone graphical color picker using the Oklch color space. Allows output to hex, rgb, hsl and many other formats.

16 stable releases

new 1.14.0 Nov 21, 2024
1.13.0 Nov 20, 2024
1.10.0 Oct 27, 2024
1.6.0 Sep 30, 2024

#52 in Visualization

Download history 280/week @ 2024-09-15 112/week @ 2024-09-22 240/week @ 2024-09-29 425/week @ 2024-10-06 270/week @ 2024-10-13 374/week @ 2024-10-20 132/week @ 2024-10-27 160/week @ 2024-11-03 113/week @ 2024-11-10 283/week @ 2024-11-17

700 downloads per month

MIT license

620KB
2K SLoC

Oklch Color Picker

picker

Crates.io

Try the web demo: https://oklch.eerolehtinen.fi/

Features

  • Takes an input color as a cli argument and ouputs the edited color to stdout
  • Uses a perceptual colorspace (Oklch) to allow intuitive editing
  • Supports many color formats for input and output (editing uses only Oklch):
    • Hex (#RGB, #RGBA, #RRGGBB, #RRGGBBAA)
    • Other common CSS formats (rgb(..), hsl(..), oklch(..))
    • Hex literal (0xRRGGBB, 0xAARRGGBB)
    • Any list of 3 or 4 numbers can be used as a color (e.g. 0.5, 0.5, 0.5 or 120, 120, 120, 255)
  • Hardware accelerated for maximum smoothness and high resolutions

Installation

Download from Releases.

If you have cargo, you can also install with:

cargo install oklch-color-picker --locked

Check out the neovim plugin that this picker was made for eero-lehtinen/oklch-color-picker.nvim.

Inspired by https://oklch.com/.

Dependencies

~21–62MB
~1M SLoC