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

app oklch-color-picker

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

3 stable releases

1.5.1 Sep 21, 2024
1.5.0 Sep 20, 2024
1.4.1 Sep 19, 2024

#37 in Visualization

Download history 135/week @ 2024-09-14 241/week @ 2024-09-21

379 downloads per month

MIT license

240KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments GLSL 183 SLoC // 0.1% comments

Oklch Color Picker

picker

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(..))
    • 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

~19–60MB
~1M SLoC