Studio Yotsuba
Back to Node List

Palette Adjust OKLCH

palette_adjust_oklch

Adjust selected palette slots in OKLCH space while keeping other slots unchanged.

Reviewed
Guide available

Input Ports

NameTypeDescription
Palette
palette
Palette
Required
Palette to adjust.
Index
index
Int
Optional dynamic single palette index.
Index List
index_list
List<Int>
Optional dynamic list of palette indices.

Output Ports

NameTypeDescription
Palette
palette
Palette
Adjusted palette.

Parameters

NameTypeDefaultRangeDescription / Options
Selection Mode
selection_mode
Enum
Auto—

How palette indices are selected.

  • autoAuto
    Use Index List input when connected, then Index input, otherwise the text selector. A connected input that contains no valid index selects nothing instead of falling back to text.
  • textText
    Use the text selector only. Examples: `all`, `0`, `2,4,6`, `3-7`.
  • indexIndex
    Use the Index input only. Example: connect an Int that changes 0 -> 1 -> 2 to adjust one palette color at a time.
  • listList
    Use the Index List input only. Example: connect List<Int> [0,2,4] or [3,4,5,6] to adjust multiple colors.
Indices
indices
Text
all—

Palette indices to adjust. Examples: `all`, `0`, `2,4,6`, `3-7`.

Lightness +/-
lightness_delta
Float
0-100–100 / step 0.1

Adds to OKLCH L in percentage points.

Chroma +/-
chroma_delta
Float
0-0.4–0.4 / step 0.001

Adds to OKLCH C.

Hue +/-
hue_delta
Float
0-360–360 / step 1

Rotates OKLCH hue in degrees.

Alpha +/-
alpha_delta
Float
0-100–100 / step 1

Adds to alpha in percentage points.

Adjusts only selected palette indices together in OKLCH space.

Use it to darken all shadow colors slightly, increase chroma only in one gradient ramp, or gradually change specific colors through an animation input.

Overview

Adjusts selected palette slots together in OKLCH space. It applies natural, perceptual tone changes by slot, such as slightly darkening only the shadow ramp or muting the whole palette.

Usage tips

  • This is the main tool for fine-tuning a color scheme. Select all and adjust overall lightness and chroma to refine the tone without touching the artwork.
  • For a quick day/night variant, apply a darker, bluer adjusted palette to the same indexed image.
  • The HSV version is more intuitive for dramatic hue rotations such as character color variants.

Related nodes

  • palette_adjust_hsv — counterpart for hue rotation
  • indexed_image_apply_palette — applies the adjusted result
  • color_adjust_oklch — single-color version
  • oklch_adjust — adjusts an entire image

Index syntax

Syntax Meaning
all Adjust every color
0 Adjust only index 0
2,4,6 Adjust indices 2, 4, and 6
3-7 Adjust indices 3 through 7

Out-of-range entries in the text selector or Index List are ignored. In Auto or Index Input mode, an out-of-range connected Index does not silently fall back to text such as all: it leaves the palette unchanged and shows a warning near the selection setting.

Index selection modes

Mode Description
Auto Uses the Index List input when connected, otherwise the Index input, and finally the Index Spec text. If a connected input contains no valid index, nothing is adjusted.
Text Uses only the Index Spec text; best for entering all or 3-7 manually
Index Input Uses only the Int Index input; best for moving the target through one color at a time with time or an expression
Index List Input Uses only the List Index List input; best for selecting multiple colors dynamically

How to use

Connect a palette and enter the target color indices in Index Spec. For example, enter 1,2,3 and set Lightness +/- to -8 to make only indices 1, 2, and 3 slightly darker.

Each adjustment can be promoted to an input pin. Drive it with Time Source or a waveform node to change palette colors over time.

To switch the target color during an animation, leave Index Selection Mode on Auto and connect an Int to the Index input. As the Int changes through 0,1,2,3..., the adjusted palette index changes in sequence. To control multiple colors at once, connect a List to Index List.

Back to Node List