Skip to content

Oklab Lightness Scale

color scale

type: oklab-lightness-scale

A decision to define a lightness scale for Oklab colors.

Models

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

Explicit value

Defines a Oklab lightness scale with arbitrary percentage values.
Sample decision
Oklab Lightness Scale Explicit Sample
0.97
0.91
0.83

Model:

oklab-lightness-scale/explicit

Params:

  • values

    • 0

      0.97

    • 1

      0.91

    • 2

      0.83

Sample data
{
"uuid": "0b7cf86faaaee938e4b5099ab4a414ad",
"name": "Oklab Lightness Scale Explicit Sample",
"model": "oklab-lightness-scale/explicit",
"params": {
"values": [
0.97,
0.91,
0.83
]
}
}
🐘 Help wanted: Documenting schemas

Bounded

Defines a Oklab lightness scale interpolating linearly between two lightness values.
Sample decision
Oklab Lightness Scale Bounded Sample
0.85
0.775
0.7
0.625
0.55
0.475
0.4
0.325
0.25

Model:

oklab-lightness-scale/bounded

Params:

  • from

    0.85

  • to

    0.25

  • steps

    7

Sample data
{
"uuid": "78233626d3ed9eed50fd8879906cdef0",
"name": "Oklab Lightness Scale Bounded Sample",
"model": "oklab-lightness-scale/bounded",
"params": {
"from": 0.85,
"to": 0.25,
"steps": 7
}
}
🐘 Help wanted: Documenting schemas

Anchored

Defines a Oklab lightness scale from an anchor value applying modifiers to generate items before and/or after the anchor .
Sample decision
Oklab Lightness Scale Anchored Sample
0.4
0.45
0.5
0.575
0.65
0.725

Model:

oklab-lightness-scale/anchored

Params:

  • anchor

    0.5

  • before

    • steps

      2

    • modifier

      • mode

        linear

      • by

        -0.05

  • after

    • steps

      3

    • modifier

      • mode

        linear

      • by

        0.075

Sample data
{
"uuid": "dcff532c3ad313a3bbf6c9ad7f6d215b",
"name": "Oklab Lightness Scale Anchored Sample",
"model": "oklab-lightness-scale/anchored",
"params": {
"anchor": 0.5,
"before": {
"steps": 2,
"modifier": {
"mode": "linear",
"by": -0.05
}
},
"after": {
"steps": 3,
"modifier": {
"mode": "linear",
"by": 0.075
}
}
}
}
🐘 Help wanted: Documenting schemas