imgix APIs
Rendering API
Fill Gradient Color Space

Fill Gradient Color Space


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