Aloha.zone.io

Aloha's technical notes.

View on GitHub

Color Science 101

[TOC]

1. Color basic

What is color? How we describe color?

Visible color in radiant spectrum

Color display spectrum









2. Color Vision

Color relativeness

Color is relative. Our eyes is simple to be cheated.

Is A and B same?
Now we hide the black and white blocks.

Color constancy

Is the strawberry is red? NO! IT'S ACTUALLY GRAY!




3. Color Model

3.1 RGB

Red, Green, Blue.

3.2 CYMK

Cyan, Yellow, Magenta, blacK.




The more you mix, the darker it will be.

Widely used in printing.

Printing with CMYK pigments:

For cheapness. Mixing C, M, Y, we can get black. But in printing, we typically use black, always mixing CMY is too expensive and it introduces black in this system for a cheap printing for non colorful contents.




4. Color Space and Gamut

4.1 CIE 1931

CIE 1931 color space are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that define these color spaces are essential tools for color management, important when dealing with color inks, illuminated displays, and recording devices such as digital cameras.

CIE 1931 RGB color matching functions

It describes the how to mix up the visible colors in different wave length using RGB, to match what human can see.

The negative value means that mixing RGB could not present the target color at postive values. Then we mix color to target color to match back the test color and we subtract the value added to target color from the tested one.

The CIE 1931 color space chromaticity diagram

4.2 Color Space

Reading color space
Tooltips of reading colorspace graph:
Purple line:

As discussed above, purples like magenta does not exist on

Color temprature:

Hues of the Planckian locus on a linear scale (values in kelvin)

White & gold, or blue & black ?

White balance

White balance:

Adjust white balance requires two dimensions: temprature (for blue to yellow) and tint (from green to red)

RGB

Define red, green and blue as orthogonal, we could have a cubic RGB space.

RGB cube space:
HSL/HSV
HSV cylinder:
HSV cone:
a. Hue
b. Saturation
c. Lightness (or value)

Common color pickers are based on HSV/HSL.

Color picker:

It is actually a section view of the cylinder.

Extension - Lipstick

Visualized lipstick colors

4.3 Gamut

Gamut is the set of chromaticities generated by a set of color primaries,

Different color spaces represent different ranges of color.

Typically, we see four standards in consuming monitors: sRGB, DCI-P3, AdobeRGB, and NTSC.

Common gamuts:
Gamut Coverage vs. Gamut volume

It means the “coverage” focuses on accuracy. The higher the coverage is, the more accurate of the device displaying the gamut. And the “volume” focuses on amount. The higher the volume is, the more color that device could display.

Color difference
Color depth

Color depth, AKA bit depth, is the number of bits used to indicate the color of a single (sub)pixel.

When we say RGB in web, we say a 8-bit color depth for R,G,B channels (also say 24-bit true color), each of which ranges from 0~255. And for a single pixel, we have 2^8 * 2^8 * 2^8 = 2^24 ≈ 16 million colors.

In a scenario color changes gradiently in short range, bit depth makes a difference obviously.

Color banding will occur, when color depth is not deep enough with a dramatic color change:
8-bit vs. 10-bit:

SP-4.4 Suggestion for buying a monitor

  1. Resolution: 2k for 21’, 23’/24’, 27’ monitors. 4k for 27’, 32’ monitors. 1080P not recommended, 8k is of low price–performance ratio. Larger size? Why not a TV.

  2. Refresh rate: Theoeretically the higher, the better. High refresh rate is meaning for gaming (90Hz+), especially FPS (120Hz+) For movie and browser usage, 60Hz is enough anyway.

  3. Panel: IPS, VA, TN. Just pick IPS.

  4. HDR: HDR10, HDR400, HDR600, HDR1000. 10/400 is not recognizable. 600/1000 is very expensive. No necessary unless you have blue-ray HDR movies. If you need, better to have a HDR TV.

  5. Gamut: (in product details/spec)
    • NTSC is really outdated. Do not pick one if it only says its NTSC coverage (typically 72%).
    • Confirm you are validting gamut coverage rather than volume. If one says gamut volume only but no coverage (typically 120%+ even 140%), DO NOT BUY IT! An extremely high volume is actually a disadvange which will make color not accurate. And guess why them don’t say their coverage?
    • 99% sRGB coverage is enough and for any common usage. It’s a prerequisite for a higher persue.
    • Pick a P3 if you uses Apple products. As monitor for iMac, Macbook, Mac mini, iPad, etc. 90%+ P3 is good, pick a 95%+ P3 at an acceptable price. Really comfortable (truct Apple),
    • AdobeRGB coverage is always good, but expensive. Pay it for your interests on photographing and photo-printing.
  6. Color difference: Delta-E <= 2 is far good enough for non-expert user. Smaller is better, but not necessary.

  7. Color depth: see the color amount spec. 1.07 billion is worth of picking (Typically 8bit + FRC, real 10bit is more expensive). Be careful for 16 million colors, check if it tells a real 8bit or 6bit + FRC. If no obvious information as a real 8bit, not recommend unless a extreme high performance price ratio.




References