Chroma Value From OKLCH

OKLCH chroma from directly supplied OKL ab opponent axes, not Lab chroma or arbitrary gamma RGB saturation. Explicit declared color space/reference and caller applicability; not spectral equivalence, pigment mixing, press readiness or accessibility certification.

Description

Oklch chroma is the radial magnitude of Oklab's two chromatic coordinates.

Oklch chroma is the radial magnitude of Oklab's two chromatic coordinates.1

It describes chromatic displacement in that space without converting lightness or checking gamut. Use Chroma Value From OKLCH to evaluate the supplied inputs under the model explained below.

When to use Chroma Value From OKLCH

Use Chroma Value From OKLCH to evaluate the supplied inputs under the model explained below. Establish the units, measurement scope and model assumptions before entering values.

How to use Chroma Value From OKLCH and understand its results

  1. Establish the units, measurement scope and model assumptions before entering values.
  2. Enter Oklab a, Oklab b using the field table and validation rules below, then run the tool.
  3. Read Oklch chroma; interpret the units, signs, ordering and unknown-value placeholders described below.
  4. Correct reported input errors and rerun. Apply successful results according to their specific meanings and check the assumptions before using them in a decision.
Input fieldMeaningValue typeRequirement
oklabAOklab anumberRequired; constraints below
oklabBOklab bnumberRequired; constraints below

Enter finite Oklab a and b coordinates. Return hypot(a,b) as Oklch chroma; both zero return zero. No RGB conversion, hue calculation, lightness output, gamut check or chroma clipping is performed.

Oklch C = sqrt(Oklab a²+Oklab b²)

Use the field order, units and branch conditions described above.

Output fieldMeaningValue type
oklchChromaOklch chromanumber
json
{
  "input": {
    "oklabA": 0.03,
    "oklabB": 0.04
  },
  "output": {
    "oklchChroma": 0.05
  }
}

Limitations and assumptions

OkLCh is the cylindrical counterpart of Oklab. Its chroma is the radial distance in the a,b plane; no lightness or hue input is needed for this calculation.2

It describes chromatic displacement in that space without converting lightness or checking gamut. Apply the exact scope and assumptions explained above.

All listed fields require explicit values. Unexpected fields, incorrect types, nonfinite numbers and sparse arrays fail validation. Domain-specific bounds, alignments and supported tokens are explained above; extremely large inputs or outputs can also be rejected. Input errors differ from successful false results, empty match lists and unknown-evidence placeholders.

Alternative or Complementary methods

Use D50 vs D65 White Point Delta E for a related task: Color differences need coordinates expressed under one comparable reference convention.

Use Rec.2020 Coverage Note Lookup for a related task: A color gamut specifies a range of representable chromaticities under a declared model.

References

  1. Chroma Value From OKLCH — tool.io

  2. CSS Color Module Level 4: Oklab and OkLCh — W3C

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies