is an option for Image and related functions that specifies the color space to which color values refer.


  • Color spaces, also known as color models, provide numerical models to represent colors. Some models such as RGB are designed to better represent colors on devices, and some like CIELAB are more suitable for perceptual color comparison.
  • Color spaces supported by Image and Image3D include:
  • "Grayscale"gray level (GrayLevel)
    "RGB"red, green, blue (RGBColor)
    "CMYK"cyan, magenta, yellow, black (CMYKColor)
    "HSB"hue, saturation, brightness (Hue)
    "XYZ"CIE XYZ (XYZColor)
    "LAB"CIE (LABColor)
    "LCH"CIE (LCHColor)
    "LUV"CIE (LUVColor)
    ColorProfileData[][i]color profile with the specified rendering intent i
  • With ColorSpace->ColorProfileData[][i], rendering intent can be specified. Possible settings are "PerceptualProfile" (default), "SaturationProfile", "MediaRelativeColorimetricProfile", and "ICCAbsoluteColorimetricProfile".


open allclose all

Basic Examples  (3)

Create an RGB image from an array of data:

Change the interpretation of the channel values:

Color space can be stored as a ColorProfileData object:

Properties & Relations  (2)

Use ImageColorSpace to extract the color space of an image:

Use ColorConvert to switch between color spaces:

Wolfram Research (2008), ColorSpace, Wolfram Language function, (updated 2014).


Wolfram Research (2008), ColorSpace, Wolfram Language function, (updated 2014).


Wolfram Language. 2008. "ColorSpace." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014.


Wolfram Language. (2008). ColorSpace. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_colorspace, author="Wolfram Research", title="{ColorSpace}", year="2014", howpublished="\url{}", note=[Accessed: 17-June-2024 ]}


@online{reference.wolfram_2024_colorspace, organization={Wolfram Research}, title={ColorSpace}, year={2014}, url={}, note=[Accessed: 17-June-2024 ]}