Skip to content
pubscout

oklch

1.0.1, released 6 months ago by turingdeal.com

Encode, decode, and pick colors using the OKLCH color space in Flutter apps.

WASM-ready
$ flutter pub add oklch
Source repository

What it does

It converts colors between RGB and the OKLCH color space, supports OKLABColor, color mixing, and provides an OKLCH-based color picker widget.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to use the OKLCH color space for modern color palettes.
  • You need a color picker based on OKLCH.

Skip it when

  • You require exact color matching with the official lch.oklch.com reference site.
  • You only need standard Material color pickers.

Strengths

  • Provides OKLCH to RGB and RGB to OKLCH conversions.
  • Includes a built-in OKLCH color picker widget.
  • Supports alpha channel on OKLCH.

Weaknesses

  • Does not currently give the exact same results as the official website reference.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

not documented

Alternatives

Packages that do the same job and could replace oklch.