#color-picker #color #utility #oklch #oklab

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.

22 stable releases

2.1.0 Mar 13, 2025
2.0.0 Mar 10, 2025
1.16.1 Mar 4, 2025
1.15.0 Dec 28, 2024
1.6.0 Sep 30, 2024

#53 in Visualization

Download history 187/week @ 2024-11-27 52/week @ 2024-12-04 21/week @ 2024-12-11 125/week @ 2024-12-25 9/week @ 2025-01-01 5/week @ 2025-01-08 3/week @ 2025-02-19 66/week @ 2025-02-26 279/week @ 2025-03-05 181/week @ 2025-03-12

529 downloads per month

MIT license

580KB
2K SLoC

Oklch Color Picker

screenshot

Crates.io

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

NOTE: This is an application, even though crates.io detects it as a library. The "library" part only exposes lua bindings for color parsing in Neovim.

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

~22–64MB
~1M SLoC