oklch-color-picker

Crates.iooklch-color-picker
lib.rsoklch-color-picker
version2.2.1
created_at2024-09-19 14:57:32.464672+00
updated_at2025-05-29 11:34:25.684194+00
descriptionA standalone graphical color picker using the Oklch color space. Allows output to hex, rgb, hsl and many other formats.
homepage
repositoryhttps://github.com/eero-lehtinen/oklch-color-picker
max_upload_size
id1380347
size857,814
Eero Lehtinen (eero-lehtinen)

documentation

README

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/.

Commit count: 200

cargo fmt