# Device-Independent CIE Color Models

Mathematica 10 introduces four new device-independent CIE color models: LABColor, LCHColor, LUVColor, and XYZColor. The function ColorConvert can be used to convert colors or images between one representation and another.

 In[1]:= Xcolor = RGBColor[1, .4, .3]
 Out[1]=
 In[2]:= XColorConvert[color, LABColor]
 Out[2]=

Use colors defined in any of the supported color models for plotting and visualization.

 In[3]:= Xcolors = {RGBColor[1., 0.43137254901960786`, 0.2901960784313726], RGBColor[ 0.7647058823529411, 0.39215686274509803`, 0.7725490196078432], RGBColor[ 0.09411764705882353, 0.6549019607843137, 0.7098039215686275]};
 In[4]:= XPlot[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi}, Filling -> Axis, PlotStyle -> colors]
 Out[4]=

Accurately convert between all supported color models using ColorConvert.

 In[5]:= Xlabcolors = ColorConvert[colors, LABColor]
 Out[5]=
 In[6]:= Xlabcolors // InputForm
 Out[6]//InputForm=
 In[7]:= XPlot[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi}, Filling -> Axis, PlotStyle -> labcolors]
 Out[7]=

## Mathematica

Questions? Comments? Contact a Wolfram expert »