LABColor

LABColor[l,a,b]
is a color directive with lightness l and color components a and b.

LABColor[l,a,b,α]
specifies opacity α.

DetailsDetails

  • LABColor is a color space designed to have perceptual uniformity; i.e. equal changes in its components will be perceived by a human to have equal effects. LABColor is the basis for ColorDistance.
  • LABColor is device independent and corresponds to the CIE 1976 color space with .
  • The parameters have the following interpretation:
  • llightness or approximate luminance
    acolor, green (negative) to magenta (positive)
    bcolor, blue (negative) to yellow (positive)
  • The parameters , , and are given by , TemplateBox[{a, *}, Superscript]=500 (f(x/x_n)-f(y/y_n)), and TemplateBox[{b, *}, Superscript]=200 (f(y/y_n)-f(z/z_n)), where , , and are color parameters, , , and are white point parameters in XYZColor, and is a piecewise function that is equal to for and for .
  • LABColor allows any real number for l, a, and b.
  • RGBColor approximately corresponds to l between 0 and 1, a between and , and b between and .
  • ColorConvert can be used to convert LABColor to other color spaces.
  • The alternative forms LABColor[{l,a,b}] and LABColor[{l,a,b,α}] can also be used. »
  • LABColor indicates that graphics primitives should be displayed in the color given.
  • Style[expr,LABColor[]] specifies that expr should be displayed with the specified color. »
  • For 3D surfaces, explicit LABColor directives define surface colors; the final shading depends on lighting and contributions from specularity and glow. »
  • Glow[LABColor[]] specifies color independent of lighting. »
  • LABColor[l,a,b,α] is equivalent to Directive[LABColor[l,a,b],Opacity[α]]. »
  • If no opacity has been specified, LABColor[l,a,b] is equivalent to LABColor[l,a,b,1].
Introduced in 2014
(10.0)