## Maxwell's Color Model

The mathematics on this page may not display properly in older browsers. For best results I would suggest that you view this page on a recent version of Chrome, Firefox, Edge, Safari, or Opera.

You may have to scroll horizontally to view some of the long equations. You can also try switching to landscape mode.

As was mentioned in the main section, Maxwell's color model was described in the paper [James Clerk Maxwell, *On the Theory of Compound Colours, and the Relations of the Colours of the Spectrum*, Phil. Trans. R. Soc. Lond., **150**, pp 57--84, 1860]. Maxwell represented the three primary colors by three points in a plane that are the vertices of a triangle. Let us denote these points by **R**, **G**, and **B**. He selected an origin **O** that doesn't lie in the plane of the triangle. Arbitrary colors are represented by points in three-space. Each point has an associated vector from the origin to the point. We will use the same symbol to represent a point in three-space and its associated vector. Let **C** represent some color. The vector associated with **C** has a length and a direction. The direction is uniquely determined by the point of intersection of the line through **O** and **C** with the plane determined by the points **R**, **G**, and **B**. Maxwell called this point in the **RGB**-plane the quality of the color. The length of the vector relative to the length of the corresponding quality point vector he called the quantity (intensity) of the color. Thus, every point in the **RGB**-plane has quantity one. The vector associated with any color can be uniquely represented by a linear combination of the linearly independent vectors associated with **R**, **G**, and **B**. Let us now look at how Maxwell represented mixes of colors. In Maxwell's model colors are combined in the same way as force vectors are combined in mechanics. Let **P** and **Q** be two points in the plane of **R**, **G**, and **B** (see Figure 14).

Suppose we want to mix $p$ units of **P** and $q$ units of **Q**. Let **P$^\prime$** and **Q$^\prime$** be the points (vectors) given by \begin{equation} \mathbf{P^\prime}=p\mathbf{P}\qquad\text{and}\qquad \mathbf{Q^\prime}=q\mathbf{Q}. \tag{1} \end{equation} These points will generally not lie in the plane of the triangle. Let **T** be the vector sum of **P$^\prime$** and **Q$^\prime$**. Define **S** to be the point of intersection of the line **OT** and the line **PQ**, i.e., **S** is the quality of the vector sum **T**. Then,

**T**. Since

**S**lies on the line segment joining

**P**and

**Q**, we have \begin{equation} \mathbf{S}=\alpha\mathbf{P}+\beta\mathbf{Q}\qquad\text{where $\alpha+\beta=1$}. \tag{3} \end{equation} Therefore, \begin{equation} \mathbf{T}=\gamma\mathbf{S}=\gamma\alpha\mathbf{P}+\gamma\beta\mathbf{Q}=p\mathbf{P}+q\mathbf{Q}.\tag{4} \end{equation}

Since every point in the plane determined by **O**, **P**, and **Q** has a unique representation as a linear combination of **P** and **Q** it follows from equation (4) that

These are the basic mixing rules for colors.

We have mentioned that any color can be represented by a linear combination of **R**, **G**, and **B**. In particular, any point in the plane of **R**, **G**, and **B** can be represented by a linear combination of the three primaries in which the sum of the multiplier coefficients is one, i.e., any color **C** in the plane of the triangle has a representation of the form

To see this consider a color **C** that is inside the triangle as shown in Figure 15.

Since **C** is on the line joining **B** and **D**, we have

Since **D** lies on the line joining **R** and **G**, we have

combining equations (11) and (12), we get

\begin{equation} \mathbf{C}=\beta\gamma\mathbf{R}+\beta\delta\mathbf{G}+\alpha\mathbf{B}. \tag{13} \end{equation}Moreover, the sum of the coefficients in equation (13) satisfies

\begin{equation} \beta\gamma+\beta\delta+\alpha=\beta(\gamma+\delta)+\alpha=\beta+\alpha=1. \tag{14} \end{equation}
A similar argument can be made for colors outside the triangle. If **C** is inside the triangle, the coefficients are all positive. For those colors that lie outside the triangle, at least one of the coefficients is negative.

Maxwell also showed that there was a geometric relation between his method of representing colors and another suggested by Hermann Grassmann. Any point in the Plane determined by **R**, **G**, and **B** can be described in terms of a vector from the point representing white in the triangle to the point in question. The direction of this vector in the plane is related to the hue and the magnitude of this vector is related to the saturation.

+++++