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

- 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".
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Create an RGB image from an array of data:

https://wolfram.com/xid/0tzo6rqu-y6yvfs

Change the interpretation of the channel values:

https://wolfram.com/xid/0tzo6rqu-mc6mkg

Color space can be stored as a ColorProfileData object:

https://wolfram.com/xid/0tzo6rqu-4t20tk

Properties & Relations (2)Properties of the function, and connections to other functions
Use ImageColorSpace to extract the color space of an image:

https://wolfram.com/xid/0tzo6rqu-htuxrb

Use ColorConvert to switch between color spaces:

https://wolfram.com/xid/0tzo6rqu-rb9g55


https://wolfram.com/xid/0tzo6rqu-civc58

Wolfram Research (2008), ColorSpace, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorSpace.html (updated 2014).
Text
Wolfram Research (2008), ColorSpace, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorSpace.html (updated 2014).
Wolfram Research (2008), ColorSpace, Wolfram Language function, https://reference.wolfram.com/language/ref/ColorSpace.html (updated 2014).
CMS
Wolfram Language. 2008. "ColorSpace." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ColorSpace.html.
Wolfram Language. 2008. "ColorSpace." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ColorSpace.html.
APA
Wolfram Language. (2008). ColorSpace. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorSpace.html
Wolfram Language. (2008). ColorSpace. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ColorSpace.html
BibTeX
@misc{reference.wolfram_2025_colorspace, author="Wolfram Research", title="{ColorSpace}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ColorSpace.html}", note=[Accessed: 19-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_colorspace, organization={Wolfram Research}, title={ColorSpace}, year={2014}, url={https://reference.wolfram.com/language/ref/ColorSpace.html}, note=[Accessed: 19-June-2025
]}