Skip to content

Oklab Chroma Scale

color scale

type: color-oklab-chroma-scale

A decision to define a chroma scale for Oklab colors.

Models

The following models can be used to produce a Oklab Chroma Scale decision.

Explicit value

Defines a Oklab chroma scale with arbitrary percentage values.
🚧 Schema
Sample data
{
  "model": "color-oklab-chroma-scale/explicit",
  "name": "Oklab Chroma Scale Explicit Sample",
  "params": {
    "values": [
      0.05,
      0.1,
      0.15
    ]
  }
}
Oklab Chroma Scale Explicit Sample
No Viz for color-oklab-chroma-scale

Model:

color-oklab-chroma-scale/explicit

Params:

  • values

    0.050.10.15

Bounded

Defines a Oklab chroma scale interpolating linearly between two chroma values.
🚧 Schema
Sample data
{
  "model": "color-oklab-chroma-scale/bounded",
  "name": "Oklab Chroma Scale Bounded Sample",
  "params": {
    "from": 0.05,
    "to": 0.3,
    "steps": 7
  }
}
Oklab Chroma Scale Bounded Sample
No Viz for color-oklab-chroma-scale

Model:

color-oklab-chroma-scale/bounded

Params:

  • from

    0.05

  • to

    0.3

  • steps

    7

Anchored

Defines a Oklab chroma scale from an anchor value applying modifiers to generate items before and/or after the anchor .
🚧 Schema
Sample data
{
  "model": "color-oklab-chroma-scale/anchored",
  "name": "Oklab Chroma Scale Anchored Sample",
  "params": {
    "anchor": 0.2,
    "after": {
      "steps": 4,
      "modifier": {
        "mode": "linear",
        "by": 0.025
      }
    },
    "before": {
      "steps": 4,
      "modifier": {
        "mode": "linear",
        "by": -0.05
      }
    }
  }
}
Oklab Chroma Scale Anchored Sample
No Viz for color-oklab-chroma-scale

Model:

color-oklab-chroma-scale/anchored

Params:

  • anchor

    0.2

  • after

    [object Object]

  • before

    [object Object]