LUVColor
Details
- LUVColor 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.
- LUVColor is device independent and corresponds to the CIE 1976
color space with
. - The parameters have the following interpretation:
-
l lightness, approximate luminance u color v color - ColorConvert can be used to convert LUVColor to other color spaces.
- The parameters
,
, and
are given by
,
, and
, where
,
, and
are color parameters,
,
, and
are white point parameters in XYZColor, and
is a piecewise function that is equal to
for
and
for
. - LUVColor allows any real number for l, u, and v.
- RGBColor approximately corresponds to l between 0 and 1, u between
and 1.76 and v between
and 0.88. - If no opacity has been specified, LUVColor[l,u,v] is equivalent to LUVColor[l,u,v,1].
- LUVColor[l,u,v,a] is equivalent to {LUVColor[l,u,v],Opacity[a]}.
- The alternative forms LUVColor[{l,u,v}] and LUVColor[{l,u,v,α}] can also be used. »
- {LUVColor[…], p1, …} indicates that graphics primitives pi should be displayed in the color given.
- The following wrappers can be used around colors:
-
ColorsNear[color,…] specifies a region around color Directive[…,color,…] specifies a color in combination with other directives » Glow[color] specifies color independent of lighting » Opacity[a,color] specifies a color with an opacity a Style[expr,color] displays expr with the specified color » - For 3D surfaces, explicit LUVColor directives define surface colors; the final shading depends on lighting and contributions from specularity and glow. »
Examples
open all close allBasic Examples (4)
Specify the color of graphics primitives:
Graphics[{LUVColor[.5, 1.5, 0], Disk[]}]Specify the color with opacity:
Graphics3D[{LUVColor[.5, 1.5, 0, .5], Sphere[]}]Specify the output color of expressions:
Style[x ^ 2 + y ^ 2, LUVColor[.5, 1, 0]]Plot[Sin[x ^ 2], {x, 0, 2Pi}, PlotStyle -> LUVColor[.5, 1, 1]]Scope (3)
Colors in 3D (1)
Graphics3D[{LUVColor[1, -.5, 1], Sphere[]}]Use diffuse and specular surface color:
Graphics3D[{LUVColor[1, -.5, 1], Specularity[White, 20], Sphere[]}]Use glow color, setting the diffuse surface color to black:
Graphics3D[{Black, Glow[LUVColor[1, -.5, 1]], Sphere[]}]Color Operations (2)
Use Blend to mix two or more colors:
{Graphics[{LUVColor[1, 0, 1], Disk[]}], Graphics[{Blend[{LUVColor[1, 0, 1], LUVColor[.5, 1, .5]}], Disk[]}],
Graphics[{LUVColor[.5, 1, .5], Disk[]}]}Use Lighter and Darker to mix with white and black, respectively:
{Graphics[{Lighter[LUVColor[0.5, 1.7, 0.2], .4], Disk[]}],
Graphics[{LUVColor[0.5, 1.7, 0.2], Disk[]}],
Graphics[{Darker[LUVColor[0.5, 1.7, 0.2], .4], Disk[]}]}Generalizations & Extensions (2)
LUVColor[{l,u,v}] is equivalent to LUVColor[l,u,v]:
{Graphics[{LUVColor[{1, 0, 1}], Disk[]}], Graphics[{LUVColor[1, 0, 1], Disk[]}]}Map[Graphics[{LUVColor[#], Disk[]}]&, {{1, 0, 1}, {1, 1, -1}, {1, -1, 0}}]Table[Graphics[{Orange, Disk[{1, 0}], Opacity[a], LUVColor[1 / 2, 1 / 2, 1 / 3], Disk[]}], {a, 0, 1, .33}]Use the opacity argument in LUVColor directly:
Table[Graphics[{Orange, Disk[{1, 0}], LUVColor[1 / 2, 1 / 2, 1 / 3, a], Disk[]}], {a, 0, 1, .33}]Properties & Relations (1)
Tech Notes
Related Guides
Text
Wolfram Research (2014), LUVColor, Wolfram Language function, https://reference.wolfram.com/language/ref/LUVColor.html (updated 2021).
CMS
Wolfram Language. 2014. "LUVColor." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/LUVColor.html.
APA
Wolfram Language. (2014). LUVColor. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LUVColor.html
BibTeX
@misc{reference.wolfram_2026_luvcolor, author="Wolfram Research", title="{LUVColor}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/LUVColor.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_luvcolor, organization={Wolfram Research}, title={LUVColor}, year={2021}, url={https://reference.wolfram.com/language/ref/LUVColor.html}, note=[Accessed: 13-June-2026]}