Skip to content

HSI

The HSI color space is not registered in Color by default

Properties

Name: hsi

White Point: D65 / 2˚

Coordinates:

Name Range
h [0, 360)
s [0, 1]
i [0, 1]

HSI

The sRGB gamut represented within the HSI color space.

The HSI model is similar to models like HSL and HSV except that it uses I for intensity instead of Lightness or Value. It does not attempt to "fill" a cylinder by its definition of saturation leading to a very different look when we plot it.

HSI Slice

Learn more.

Channel Aliases

Channels Aliases
h hue
s saturation
i intensity

Input/Output

The HSI space is not currently supported in the CSS spec, the parsed input and string output formats use the color() function format using the custom name --hsi:

color(--hsi h s i / a)  // Color function

The string representation of the color object and the default string output use the color(--hsi h s i / a) form.

>>> Color("hsi", [0, 1, 0.33333])
color(--hsi 0 1 0.33333 / 1)
>>> Color("hsi", [38.824, 1, 0.54902]).to_string()
'color(--hsi 38.824 1 0.54902)'

Registering

from coloraide import Color as Base
from coloraide.spaces.hsi import HSI

class Color(Base): ...

Color.register(HSI())