Making Sense of Color Management PREVIEW
Making Sense of Color Management PREVIEW
SA
M
PL
E
CH
AP
TE
R
MAKING SENSE
OF COLOR
MANAGEMENT
CRAIG HOCKENBERRY
FOREWORD BY
JOHN GRUBER
You just got a gig to design a website for an optometrist,
Dr. Eyeful. Sweet!
The doctor wants you to use his two favorite colors: red and
purple. (Bonus points if you include a “site” and “sight” pun in
the tagline.)
You’ve been developing sites since the days of web-safe color
palettes. By picking red, green, and blue (RGB) values of (255,
0, 0) and (102, 0, 204), you’ll satisfy the doctor’s branding
requirements while working with tried-and-true colors. Of
course, you’re careful to use those exact color specifications in
both your Photoshop document and CSS styles.
But when you load the page in your browser, you see a weird
color shift in the header (Fig 1.1).
Other browsers show a similar color shift, until you look at
the page on your tablet—and it’s perfect! What the heck?
After a bit of surfing, you find a site that recommends spec-
ifying something called sRGB in Photoshop. You don’t know
exactly what that means, but you tweak things and save a new
graphic file. It fixes the problem in Safari, but the color is still
off in Chrome. No matter what you do, you can’t get the CSS
and image colors to match.
This inconsistency bugs you. The doctor may have question-
able taste in colors, but his eyesight is perfect. He’s going to see
these shifts and ask what’s happening.
Problem is, you really have no clue.
C o p i n g w i t h C o lo r s 1
Fig 1.1: The site header is an eyeful. What’s worse, the colors are shifting.
This worked for a time, but as you saw with Dr. Eyeful, our
basic RGB values don’t translate the same way across devices.
To find out why, let’s take a quick trip through history.
2 M a k i n g S e n s e o f C o lo r M a n ag e m e n t
printed page. Photographers, designers, and printers knew
they couldn’t rely solely on an RGB or a CMYK color space
to get consistent results. Their workflow included another
component, which profiled the color capabilities of their equip-
ment—and adjusted colors accordingly. (This component was a
complex mathematical model based on the human eye: a color
profile. We’ll get to this soon.)
We face the same scenario now, the same variety in tech-
nology. The digital sensor on a cheap cell phone camera can’t
capture as many colors as a high-end, pricey DSLR. Similarly,
an LCD display from only a few years ago looks absolutely hor-
rible when compared to the Retina display on an iMac. OLED
technology on wristwatches is a new animal entirely.
If you want your reds, greens, and blues to look right across
browsers or apps, you need to pay attention to how you specify
colors in your tools. While you often won’t have much choice
about how color is processed by a platform, you will get unpre-
dictable results if you ignore the requirements of whatever
environment you’re working in—which is what happened with
Dr. Eyeful’s website.
Understanding color management yields dividends. You’ll
ensure branding and other color elements in your interface look
the best they can. And think how many elements are involved
in a website—all the interface graphics, hero images, and other
bits—wouldn’t it be great if you could reuse those assets, with-
out modification, in a mobile app?
You can, once you know how your workflow manages color
and your target platforms present the images. As a first step, let’s
examine how colors got their start on our computers.
Old-fashioned color
In the late 1970s, color began to appear on computer displays.
These early machines had little memory—sometimes as small
as 4,096 characters total. Processors were also limited, and
accessed memory eight bits at a time, giving programmers a
minimum value of 0 and a maximum value of 255.
C o p i n g w i t h C o lo r s 3
Fig 1.2: Two green bulbs produce different colors.
4 M a k i n g S e n s e o f C o lo r M a n ag e m e n t
As photographers and print designers learned, we can’t
solely rely on the values for primary colors. We also need infor-
mation, or a color profile, from the manufacturer that explains
how they display the color green.
COLOR PROFILES
Anything that can capture or display an image—your camera,
your monitor, etc.—has a set of values that describes the range
of colors available for use. This set of data is the color profile,
and it comes in a format defined by the International Color
Consortium (ICC).
Creating a profile involves a lot of science. If you’re a man-
ufacturer of green light bulbs, you’ll take an expensive piece of
equipment, a color spectrophotometer, to measure the amount
of visible light produced at different color wavelengths. You
then use that data to generate a mathematical model—the pro-
file, which is specific to the device: my iMac display profile
would look terrible on your MacBook.
Some manufacturers choose to use a standard profile for
their bulbs. Two of the most popular are Adobe RGB and stan-
dard RGB (sRGB):
C o p i n g w i t h C o lo r s 5
Fig 1.3: The color ranges of two profiles: sRGB (left) and Adobe RGB (right).
The curved shape with a flat side represents all the colors
the human eye can see—it never changes. Each triangle rep-
resents a color profile; the X-corners are fully saturated red,
green, and blue.
The black circle marks the brightest green the profile can
produce. It’s like our green light bulbs: sRGB’s green has a
yellow tint, while Adobe’s is closer to the ideal color our eyes
see. (As you’ll find out in a moment, the weird shape springs
from our physiology!)
The size, or gamut, of each triangle reflects the range of pos-
sible colors. The larger triangle, Adobe RGB, has a wider gamut
(which is why the profile is so popular among photographers).
Keen observers will note black isn’t present. That’s because
we cheated a bit and showed only two dimensions. When we
add color saturation, the curved shape lies on its side and a fully
saturated white appears as a peak, with black as a base (Fig 1.4).
That pointy shape is everything our computers need to take
the raw numeric values in our files and display them so we all
see a similar color.
6 M a k i n g S e n s e o f C o lo r M a n ag e m e n t
Fig 1.4: sRGB color profile with saturation
as a third dimension.
C o p i n g w i t h C o lo r s 7
Don’t let the old age of CIELAB and CIEXYZ trick you: both
are still the standards to put your eye’s behavior into numbers
our computers can process:
8 M a k i n g S e n s e o f C o lo r M a n ag e m e n t
Document Display
CIEXYZ / CIELAB
Camera Printer
Fig 1.5: Using color profiles, the eye perceives the same color for different raw values.
C o p i n g w i t h C o lo r s 9
working space. Some apps, like Photoshop, let you choose the
working space. Other apps use a predefined color space, usually
a standard one like sRGB.
If you’re curious, you can explore all the color profiles
installed on your Mac using the ColorSync Utility in the Appli-
cations > Utilities folder. Under Profiles, you’ll see a long list,
sourced from Apple, Adobe, the display manufacturer, and
many others. When you select a profile, its graphic represen-
tation appears, along with other details.
Read the rest of this chapter and more when you buy the book!
10 M a k i n g S e n s e o f C o lo r M a n ag e m e n t