Color
Color
Display
Maureen Stone
StoneSoup Consulting
Effective Color
Aesthetics
Perception
Materials
Illustrators, cartographers
Artists, designers
A few scientific principles
What is Color?
Metameric match
Color Measurement
CIE Standard Observer
CIE tristimulus values (XYZ)
All spectra that stimulate the same tristimulus
(XYZ) response are indistinguishable
Project X,Y,Z on a
plane to separate
colorfulness from
brightness
x = X/(X+Y+Z)
y = Y/(X+Y+Z)
z = Z/(X+Y+Z)
1 = x+y+z
XYZ = xyY
RGB Chromaticity
R,G,B are points (varying lightness)
Sum of two colors lies on line
Gamut is a triangle
• White/gray/black
near center
• Saturated colors
on edges
Display Gamuts
Lightness
Colorfulness
Hue
Munsell Atlas
Courtesy Gretag-Macbeth
CIELAB and CIELUV
Lightness (L*) plus two color axis (a*, b*)
Non-linear function of CIE XYZ
Defined for computing color differences (reflective)
CIELUV CIELAB
From Principles of Digital Image Synthesis by Andrew Glassner. SF: Morgan Kaufmann Publishers, Fig. 2.4 & 2.5, Page 63 & 64
© 1995 by Morgan Kaufmann Publishers. Used with permission.
Psuedo-Perceptual Models
HLS, HSV, HSB
NOT perceptual models
Simple renotation of RGB
• View along gray axis
• See a hue hexagon
• L or V is grayscale pixel value
Cannot predict perceived lightness
L vs. Luminance, L*
Corners of the
RGB color cube
Luminance values
L* values
L from HLS
All the same
Lightness Scales
Lightness, brightness, luminance, and L*
• Lightness is relative, brightness absolute
• Absolute intensity is light power
Luminance is perceived intensity
• Luminance varies with wavelength
• Variation defined by luminous efficiency function
• Equivalent to CIE Y
L* is perceptually uniform lightness
Luminance & Intensity
Intensity
• Integral of spectral distribution (power)
Luminance
• Intensity modulated by wavelength sensitivity
• Integral of spectrum luminous efficiency function
Color differences
“Intuitive” color spaces
Color scales
Color Appearance
Image courtesy of John MCann
Image courtesy of John MCann
Color Appearance
More than a single color
• Adjacent colors (background)
• Viewing environment (surround)
Appearance effects
• Adaptation
surround
• Simultaneous contrast
• Spatial effects
Color in context
stimulus
Aesthetics
Perception
Materials
What makes color effective?
“Good ideas executed with superb craft”
—E.R. Tufte
www.nps.gov
“Color” includes Gray
Chroma (saturation)
• Intensity or purity
• Distance from gray
Value (lightness)
• Dark to light
• Applies to all colors, not just gray
Tints and Tones
Tone or shade
• Hue + black
• Decrease saturation
• Decrease lightness
Tint
• Hue + white
• Decrease saturation
• Increase lightness
Gradations
Color Design Principles
Control value (lightness)
• Ensure legibility
• Avoid unwanted emphasis
Use a limited hue palette
• Control color “pop out”
• Define color grouping
• Avoid clutter from too many competing colors
Use neutral backgrounds
• Control impact of color
• Minimize simultaneous contrast
Envisioning Information
www.edwardtufte.com
Fundamental Uses
To label
To measure
To represent or to imitate reality
To enliven or decorate
To Label
Identify by Color
Information Visualization
Colin Ware
Product Categories
http://www.cybergeography.org/atlas/us_spectrum_map.pdf
Distinguishable on Inspection
Tableau Color Example
Color palettes
• How many? Algorithmic?
• Basic colors (regular and pastel)
• Extensible? Customizable?
Color appearance
• As a function of size
• As a function of background
Robust and reliable color names
Tableau Colors
www.tableausoftware.com
Maximum hue separation
Analogous, yet distinct
Sequential
Color Names
Basic names (Berlin & Kay) black
• Linguistic study of names white
gray
• Similar names Perceptual
• Similar evolution primaries red
green
• Many different languages
blue
yellow
orange
purple
brown
Distinct colors = distinct names? pink
Distinct, but hard to name
Color Names Research
Selection by name
• Berk, Brownston & Kaufman, 1982
• Meier, et. al. 2003
Image recoloring
• Saito, et. al.
Labels in visualization
• D’Zmura, Cowan (pop out conditions)
• Healey & Booth (automatic selection)
Web experiment
• Moroney, et. al. 2003
World Color Survey (Kay & Cook)
• http://www.icsi.berkeley.edu/wcs/
To Measure
Data to Color
Types of data values
• Nominal, ordinal, numeric
• Qualitative, sequential, diverging
Types of color scales
• Hue scale
– Nominal (labels)
– Cyclic (learned order)
• Lightness or saturation scales
– Ordered scales
– Lightness best for high frequency
– More = darker (or more saturated)
– Most accurate if quantized
Color Scales
Long history in graphics and visualization
• Ware, Robertson et. al
• Levkowitz et. al
• Rheingans
PRAVDA Color
• Rogowitz and Treinish
• IBM Research
Cartography
• Cynthia Brewer
• ColorBrewer
Different Scales
Lightness scale
Lightness scale
with hue and
chroma variation
Hue scale with
lightness variation
Phase Diagrams (hue scale)
Singularities occur where all colors meet
Figure 1.9. Cotidal chart. Tide phases relative to Greenwich are plotted for all the
world’s oceans. Phase progresses from red to orange to yellow to green to blue to
purple. The lines converge on anphidromic points, singularities on the earth’s
surface where there is no defined tide. [Winfree, 1987 #1195 , p. 17].
Brewer Scales
Nominal scales
• Distinct hues, but similar emphasis
Sequential scale
• Vary in lightness and saturation
• Vary slightly in hue
Diverging scale
• Complementary sequential scales
• Neutral at “zero”
Thematic Maps
US Census Map
www.colorbrewer.org
Tableau Color Example
Color scales for encoding data
• Displayed as charts and graphs
• Quantized or continuous
Issues
• Color ramps based on Brewer’s principles
• Not single hue/chroma varying in lightness
• Create a ramp of the “same color”
• Legible different than distinguishable
• Center, balance of diverging ramps
Heat Map (default ramp)
Skewed Data
Slightly negative
www.tableausoftware.com
Full Range
Skewed Data
www.tableausoftware.com
Stepped
Skewed Data
www.tableausoftware.com
Threshold
Skewed Data
www.tableausoftware.com
Color and Shading
Shape is defined by lightness (shading)
“Color” (hue, saturation) labels
Variable 1, 2 X, Y
Variable 3, 4, 5 R, G, B
http://www.colorbrewer.org
Brewer Examples
To Represent or
Imitate Reality
Illustrative Color
Courtesy of Cartia
To Enliven or Decorate
Which has more information?
Which would you rather look at?
colorusage.arc.nasa.gov
Legibility
Drop Shadows
Drop Shadow
Drop shadow adds edge Primary colors on black
Primary colors on black
Primary colors on black
Primary colors on black
Primary colors on white Primary colors on black
Primary colors on white Primary colors on black
Primary colors on white
Primary colors on white
Primary colors on white
Primary colors on white
Readability
If you can’t use color wisely,
it is best to avoid it entirely
Above all, do no harm
colorusage.arc.nasa.gov
What Defines Layering?
Perceptual features
• Contrast (especially lightness) Emergency
• Color, shape and texture
Emergency
Task and attention
• Attention affects perception Emergency
Display characteristics
• Brightness, contrast, “gamma”
Contrast
General formulation
• Luminance difference (Lf , Lb)
• Depends on adaptation and size
Small symbols, solid background (Weber)
• C = (Lf –Lb)/Lb
• Adapted to background
Textures, high frequency patterns (Michelson)
• C = (Lf –Lb)/(Lf +Lb)
• Adapted to average
Luminance is intensity
modulated by wavelength sensitivity
Contrast (continued)
Contrast using L* L* is the same as Munsell Value,
computed as a function of L
• 1 is ideally visible
• 10 is easily visible
• 20 is legible for text
Reasons to use a light background
• More like a reflective surface
• Contrast metrics are more accurate
• Easier to look at in mixed environment
Dark background better for dark environments
Grid Example
Grid sits unobtrusively in the background Grid sits in foreground, obscuring map
My website
• http://www.stonesc.com/Vis06
• Final copy of slides, references
A Field Guide to Digital Color
• A.K. Peters