Getting individual values

#HSLA

hue($color)         // 0deg..360deg
saturation($color)  // 0%..100%
lightness($color)   // 0%..100%
alpha($color)       // 0..1 (aka opacity())

#RGB

red($color)         // 0..255
green($color)
blue($color)

See: hue(), red()

Comments