Imgix APIsRendering APIFillFill Gradient Color Space

Fill Gradient Color Space

fill-gradient-cs

The color space of the fit=fill&fill=gradient output.

Valid values are: linear, srgb, oklab, hsl and lch. Defaults to srgb when not specified.

ValueDescription
linearRepresents colors as they are mathematically in relation to their intensity, without any gamma correction, meaning the relationship between the value and the intensity is direct and proportional.
oklabDesigned for perceptual uniformity, it represents colors in a way that attempts to match human vision, making similar color differences appear similar in size across the spectrum.
srgb (default)This is a standard colorspace for web and digital images, applying a specific gamma curve to linear RGB values to adjust for human vision, making it non-linear.
hslStands for Hue, Saturation, and Lightness, which is a cylindrical-coordinate representation of colors
lchStands for Lightness, Chroma, and Hue. It is a color space derived from the CIELAB model and is designed to be perceptually uniform