#color-picker #oklab #utility #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.

25 stable releases

Uses new Rust 2024

2.3.0 Oct 26, 2025
2.2.1 May 29, 2025
2.1.0 Mar 13, 2025
1.16.1 Mar 4, 2025
1.6.0 Sep 30, 2024

#322 in GUI

MIT license

610KB
3K SLoC

Rust 2.5K SLoC // 0.0% comments GLSL 381 SLoC // 0.1% comments

Oklch Color Picker

Crates.io

screenshot

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 outputs 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

COLOR ACCURACY NOTE: This application doesn't properly interpret display color gamuts wider than sRGB. E.g., if your display uses Display P3 (common with Apple devices) or Adobe RGB, this application shows colors more vibrantly than intended.

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

~25–71MB
~1.5M SLoC