ArticleslgStudy

science

Color difference

Color difference is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Color difference rather than just read about it. In short: In color science, color difference or color distance is the separation between two colors. This metric allows quantified examination of a notion that formerly could only be described with adjectives.

Color difference — main illustration
Color difference — illustration

Key takeaways

  • Color difference belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Color difference to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Color difference from memory before moving on to harder problems.

Reference excerpt

In color science, color difference or color distance is the separation between two colors. This metric allows quantified examination of a notion that formerly could only be described with adjectives. Quantification of these properties is of great importance to those whose work is color-critical. Common definitions make use of the Euclidean distance in a device-independent color space.

Euclidean

sRGB As most definitions of color difference are distances within a color space, the standard means of determining distances is the Euclidean distance. If one presently has an RGB (red, green, blue) tuple and wishes to find the color difference, computationally one of the easiest is to consider R, G, B linear dimensions defining the color space. A very simple example can be given between the two colors with RGB values (0, 64, 0) ( ) and (255, 64, 0) ( ): their distance is 255. Going from there to (255, 64, 128) ( ) is a distance of 128. When we wish to calculate distance from the first point to the third point (i.e. changing more than one of the color values), we can do this: distance=(R2−R1)2+(G2−G1)2+(B2−B1)2. When the result should be computationally simple as well, it is often acceptable to remove the square root and simply use distance2=(R2−R1)2+(G2−G1)2+(B2−B1)2. This will work in cases when a single color is to be compared to a single color and the need is to simply know whether a distance is greater. If these squared color distances are summed, such a metric effectively becomes the variance of the color distances. There have been many attempts to weigh RGB values, however these are demonstrably worse at color determinations and are properly the contributions to the brightness of these colors, rather than to the degree to which human vision has less tolerance for these colors. The closer approximations would be more properly (for non-linear sRGB, using a color range of 0–255): {2ΔR2+4ΔG2+3ΔB2,R¯<128,3ΔR2+4ΔG2+2ΔB2otherwise, where: ΔR=R1−R2,ΔG=G1−G2,ΔB=B1−B2,R¯=12(R1+R2). One of the better low-cost approximations, sometimes called "redmean", combines the two cases smoothly: r¯=12(R1+R2),ΔC=(2+r¯256)ΔR2+4ΔG2+(2+255−r¯256)ΔB2. There are a number of color distance formulae that attempt to use color spaces like HSV or HSL with the hue represented as a circle, placing the various colors within a three-dimensional space of either a cylinder or cone, but most of these are just modifications of RGB; without accounting for differences in human color perception, they will tend to be on par with a simple Euclidean metric.

Uniform color spaces CIELAB and CIELUV are relatively perceptually-uniform color spaces and they have been used as spaces for Euclidean measures of color difference. The CIELAB version is known as CIE76. However, the non-uniformity of these spaces were later discovered, leading to the creation of more complex formulae.

Uniform color space: a color space in which equivalent numerical differences represent equivalent visual differences, regardless of location within the color space. A truly uniform color space has been the goal of color scientists for many years. Most color spaces, though not perfectly uniform, are referred to as uniform color spaces, since they are more nearly uniform when compared to the chromaticity diagram.

A uniform color space is supposed to make a simple measure of color difference, usually Euclidean, "just work". Color spaces that improve on this issue include CAM02-UCS, CAM16-UCS, and Jzazbz.

Rec. ITU-R BT.2124 or ΔEITP In 2019 a new standard for WCG and HDR was introduced, since CIEDE2000 was not adequate for it: CIEDE2000 is not reliable below 1 cd/m2 and has not been verified above 100 cd/m2; in addition, even in BT.709 blue primary CIEDE2000 is underpredicting the error. ΔEITP is scaled so that a value of 1 indicates the potential of a just noticeable color difference. The ΔEITP color difference metric is derived from display referenced ICTCP, but XYZ is also available in the standard. The formula is a simply scaled Euclidean distance: ΔEITP=720(I1−I2)2+(T1−T2)2+(P1−P2)2, where the components of this "ITP" is given by

I = I, T = 0.5 CT, P = CP.

Other geometric constructions The Euclidean measure is known to work poorly on large color distances (i.e. more than 10 units in most systems). On CIELAB, a hybrid approach where a taxicab distance is used between the lightness and the chroma plane, ΔEHyAB=(a2−a1)2+(b2−b1)2+|L2−L1|, is shown to work better than Euclidean and CIEDE2000.

CIELAB ΔE*

The International Commission on Illumination (CIE) calls their distance metric ΔE* (also inaccurately called dE*, dE, or "Delta E") where delta is a Greek letter often used to denote difference, and E stands for Empfindung; German for "sensation". Use of this term can be traced back to Hermann von Helmholtz and Ewald Hering. Perceptual non-uniformities in the underlying CIELAB color space have led to the CIE refining their definition over the years, leading to the superior (as recommended by the CIE) 1994 and 2000 formulas. These non-uniformities are important because the human eye is more sensitive to certain colors than others. CIELAB metric is used to define color tolerance of CMYK solids. A good metric should take this into account in order for the notion of a "just noticeable difference" (JND) to have meaning. Otherwise, a certain ΔE may be insignificant between two colors in one part of the color space while being significant in some other part. All ΔE* formulae are originally designed to have the difference of 1.0 stand for a JND. This convention is generally followed by other perceptual distance functions such as the aforementioned ΔEITP. However, further experimentation may invalidate this design assumption, the revision of CIE76 ΔE*ab JND to 2.3 being an example. A recurring theme in ΔE* formulae is the special-casing based on hue. This is related to a well-known "blue turns purple" defect of CIELAB.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Color difference

Start with the simplest possible case. Write down what Color difference claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Color difference before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Color difference ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Color difference

In research
Color difference appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Color difference in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Color difference is common in secondary-school and first-year university syllabi. It links to neighbouring topics Color space, Color vision, Distance, so understanding it makes those chapters shorter.
In everyday life
Look for Color difference outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Color difference” →

How to study Color difference in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Color difference means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Color difference out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Color difference in simple terms?

In color science, color difference or color distance is the separation between two colors. This metric allows quantified examination of a notion that formerly could only be described with adjectives.

Why does Color difference matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Color difference?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Color difference.

Tags

  • Color space
  • Color vision
  • Distance
  • Visual perception

Keep exploring