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.

  • linear: Represents 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.
  • oklab: Designed 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
  • hsl: Stands for Hue, Saturation, and Lightness, which is a cylindrical-coordinate representation of colors
  • lch: Stands for Lightness, Chroma, and Hue. It is a color space derived from the CIELAB model and is designed to be perceptually uniform

See the API specification for more information about this parameter's value ranges and format.