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.
Sample decision
Oklab Chroma Scale Explicit Sample
0.05
0.1
0.15

Model:

color-oklab-chroma-scale/explicit

Params:

  • values

    0.050.10.15

Sample data
{
"name": "Oklab Chroma Scale Explicit Sample",
"model": "color-oklab-chroma-scale/explicit",
"params": {
"values": [
0.05,
0.1,
0.15
]
}
}
🐘 Help wanted: Documenting schemas

Bounded

Defines a Oklab chroma scale interpolating linearly between two chroma values.
Sample decision
Oklab Chroma Scale Bounded Sample
0.05
0.081
0.113
0.144
0.175
0.206
0.238
0.269
0.3

Model:

color-oklab-chroma-scale/bounded

Params:

  • from

    0.05

  • to

    0.3

  • steps

    7

Sample data
{
"name": "Oklab Chroma Scale Bounded Sample",
"model": "color-oklab-chroma-scale/bounded",
"params": {
"from": 0.05,
"to": 0.3,
"steps": 7
}
}
🐘 Help wanted: Documenting schemas

Anchored

Defines a Oklab chroma scale from an anchor value applying modifiers to generate items before and/or after the anchor .
Sample decision
Oklab Chroma Scale Anchored Sample
0.05
0.075
0.1
0.15
0.2
0.25

Model:

color-oklab-chroma-scale/anchored

Params:

  • anchor

    0.1

  • before

    [object Object]

  • after

    [object Object]

Sample data
{
"name": "Oklab Chroma Scale Anchored Sample",
"model": "color-oklab-chroma-scale/anchored",
"params": {
"anchor": 0.1,
"before": {
"steps": 2,
"modifier": {
"mode": "linear",
"by": -0.025
}
},
"after": {
"steps": 3,
"modifier": {
"mode": "linear",
"by": 0.05
}
}
}
}
🐘 Help wanted: Documenting schemas