The following properties are exposed for use in Liquid templates.

rgbcolors
Array of colors in the palette, in RGB format
count
Total number of colors in the palette
duplicatecount
The number of duplicate colors in the palette
uniquecount
The number of unique colors in the palette
filename
The palette filename

Each item in the rgbcolors collection contains these properties.

index
Swatch index
r
Red channel value (0-255)
g
Green channel value (0-255)
b
Blue channel value (0-255)
name
Swatch name

In this article