Open Access
How to translate text using browser tools
26 February 2014 Quantifying Color Variation: Improved Formulas for Calculating Hue with Segment Classification
Stacey D. Smith
Author Affiliations +

Quantification of color variation is a crucial component of many evolutionary and ecological studies. Color is involved in a wide range of biological phenomena, such as thermoregulation, crypsis, mimicry, and communication (Chittka and Menzel, 1992; Endler, 1993; Forsman et al., 2002; Robertson and Rosenblum, 2009). In plants, color is particularly important for signaling to pollinators, attracting seed dispersers, and mediating interactions with herbivores (Gautier-Hion et al., 1985; Irwin et al., 2003; Fenster et al., 2004; Strauss and Cacho, 2013). Variation in color may appear in different parts of the same individual as well as among individuals of the same species and between individuals of different species. Measuring this color variation is commonly the first step in determining its biological significance.

The way in which color is measured will depend on the objective of any given study, but can be broadly divided into two approaches, one which is independent of any particular visual system and one in which the observer of the object is taken into account (Endler, 1990; Chittka, 1992; Vorobyev and Osorio, 1998). Different observers can perceive the color of a given object differently, even in the same light environment, because of differences in their visual systems. For example, birds have four types of cones in their retinas (ultraviolet, short-, medium-, and long-wavelength) while humans only have the last three types (Bowmaker et al., 1997; Roorda and Williams, 1999). Other differences, such as the relative abundance of cone types and the spectral properties of the visual pigments, can further amplify differences in the spectral sensitivity and in the perceived color. Thus, when the visual system of the observer is well characterized, the most relevant measure of color is that which accounts for the spectral sensitivities of that observer.

However, a measure of color independent of a particular species' visual system is often more appropriate. Some research questions are not related to a particular observer, e.g., color variation as an adaptation to heat stress or other environmental conditions (Lacey et al., 2010). Also, comparative studies or meta-analyses are often not focused on a single observer and require color measurements that are comparable across species (Hodges et al., 2002; Altshuler, 2003; Smith et al., 2008; Parra, 2010). Finally, even when a certain observer is of interest, its visual system or that of a closely related species may not have been studied. In such cases, one of the most popular approaches for quantifying color is the segment classification method, which uses three variables (chroma, hue, and brightness) to describe the shape and height of reflectance spectra and identify their location in color space (Endler, 1990). These continuous variables are easily calculated, amenable to analysis, and often capture the majority of the variation present in color spectra (Grill and Rush, 2000). However, the original description of one of the variables, hue, is insufficient to calculate its value across the range of spectra in color space. Here I provide improved formulas for computing hue and give examples across the range of colors. Accurate and comparable measurements of hue are a necessity for any future meta-analyses of the growing body of color literature.

METHODS AND RESULTS

Quantifying and comparing colors with the segment classification method begins with the measurement of reflectance spectra. A reflectance spectrum is a graph depicting the amount of light reflected by an object at different wavelengths. These spectra are typically obtained using a light source and spectrometer with a fiber optic probe (e.g., from Gröbel UV-Elektronik, Ettlingen, Germany, or Ocean Optics, Dunedin, Florida, USA). The raw reflectance values are standardized by comparison to a white reference standard that evenly reflects all wavelengths of light (e.g., Spectralon, Labsphere, North Sutton, New Hampshire, USA). Examples of standardized reflectance spectra are shown in Fig. 1. Spectra differ by the total amount of light reflected (area under the curve) and the shape of the curve. For example, a red object will reflect more light in the upper “red” end of the spectrum while a white object will reflect all colors of light more or less equally.

The segment classification method aims to capture the variation across reflectance spectra through three variables: chroma, hue, and brightness. Brightness (sensu Endler, 1990) is simply the total area under the curve from 400 to 700 nm, while chroma and hue are calculated by comparing values in different segments of the visible spectrum. First, the spectrum is divided among four equal segments (blue or “B”: 400–475 nm, green or “G”: 475–550 nm, yellow or “Y”: 550–625 nm, and red or “R”: 625–700 nm). The relative brightness of each segment is calculated by summing the area under the curve in that range and dividing by the total brightness. As many animals detect color by opposing input from different receptors (e.g., short-, medium-, and long-wavelength receptors), these relative brightness values are converted to a long vs. medium contrast (LM), which equals R-G, and a medium-short contrast (MS), which is Y-B. For any spectrum, the LM and MS values can be plotted in a two-dimensional graph where LM is the value along the y-axis and MS is the value along the x-axis (Fig. 2). In this color space, chroma (the saturation of color) is the radius, i.e., the distance of the spectrum from the origin. Following geometric principles, this value can be calculated as √(LM2 + MS2). Spectra with no chroma (white, gray, black) will appear at the center (the origin), and those with high chroma will appear toward the outside. Hue (H), the type of color, corresponds to the angle clockwise from the positive y-axis (Endler, 1990). Red colors will have small values (i.e., be close to 0°), while yellow, green, and blue colors will be near 90°, 180°, and 270°, respectively (Fig. 2).

As an angle ranging from 0-360° or 0–2π radians, hue can be calculated from x and y Cartesian coordinates (LM and MS) following basic principles of geometry. However, the original description of the metric (Endler, 1990) provided formulas that only result in correct values for a portion of color space. Here, I describe revised formulas that give correct values in all regions of color space and explain their application. I begin by reviewing the formulas originally presented (Endler, 1990), which use either LM or MS along with chroma (C) to calculate the angle H:

e01_01.gif
e02_01.gif

When spectra fall into the upper right quadrant of the color space (Fig. 2), these formulas will provide correct values for H (Table 1). However, Eq. 1 will not give correct values in other quadrants, and Eq. 2 similarly gives incorrect values in the left quandrants where MS is negative (Table 1 ). This is because the signs of LM and MS are needed to specify the quadrant in which the point will fall before the correct angle can be calculated. Using the arcsine and modulus functions, the following equations will specify H, the angle clockwise from R:

e03_01.gif
e04_01.gif

Similarly, hue can be calculated from the sign of MS and the values of LM and C with the arccosine function (Fig. 2A):

e05_01.gif

It should be noted that measuring the angle clockwise from R differs from the convention in geometry, and standard trigonometric equations for converting x and y values (here, LM and MS) to polar coordinates will result in a different angle, one that moves counterclockwise from the positive x-axis.

Fig. 1.

Example reflectance spectra adapted from Endler (1990). The spectra are named as in the Munsell Book of Color (Munsell Color Company, 1976) with the format hue (number and letter) and value/chroma. The hues by letter are R (red), Y (yellow), GY (green-yellow), G (green), B (blue), BP (blue-purple), and P (purple). Red and yellow spectra appear in (A); yellow and green-yellow in (B); and green, blue, and purple in (C).

f01_01.jpg

To demonstrate the application of these formulas to standardized reflectance spectra, we used the same 11 spectra measured from the Munsell Book of Color (Munsell Color Company, 1976) that were used in the original paper (Endler, 1990). This edition of the Munsell book is no longer accessible, so the spectra were scanned and digitized using GetData Graph Digitizer 2.24 ( http://getdata-graph-digitizer.com) from Endler (1990: Fig. 4). The raw spectral data are presented in Appendix 1 and are also available from the author upon request.

Fig. 2.

(A) Color space with the segment classification system adapted from Endler (1990). R, Y, G, and B are red, yellow, green, and blue. The difference between long and medium (R and G) wavelengths (LM) is plotted against the difference between medium and short (F and B) wavelengths (MS). For a given point, chroma (C) is the radius, the distance from the origin. Hue is measured as the angle clockwise from R (positive LM values). (B) Points in color space corresponding to the example reflectance spectra in Fig. 1. Values are given in Table 1.

f02_01.jpg

Chroma, hue, and brightness were calculated from these spectra (Fig. 1) as described above (see also Appendix 1), and the LM and MS values were used to plot the spectra in color space (Fig. 2B). These values are presented in Table 1. As expected, spectra that reflect low amounts of light (e.g., spectrum 3) have low brightness scores while those, such as spectrum 4, that reflect highly in part or all of the spectrum show high brightness values. Chroma varied in relation to the contrast in relative brightness in segments of the spectrum; spectra with the strongest differences between reflectance in yellow and blue or red and green (e.g., spectrum 1) gave the highest chroma values. Application of either of the new equations (Eq. 3 and Eq. 4 or 5) resulted in hue values that correspond to the position of these points in color space (Table 1). Red spectra have low values (occurring in the first quadrant) while yellow, green, blue, and purple spectra have progressively higher values.

CONCLUSIONS

The differences in hue values between the original formulas and those presented here depend on the quadrant in which a spectrum appears. When both LM and MS are positive (red to yellow spectra), both sets of formulas return the same values. The original arccosine formula, but not the arcsine formula, will produce correct values when LM is negative but MS is positive (yellow to green spectra, Fig. 2). However when both LM and MS values are negative (e.g., spectrum 9, Fig. 2B), neither of the original formulas can provide the correct angle. Finally, neither formula gives the correct angle when LM is positive but MS is negative (blue-purple spectra 10 and 11), although value from the original arcsine formula would be correct if adjusted by modulus 2π. By contrast, the new formulas, which incorporate the signs of LM and MS, provide correct values in all sectors of color space.

Table 1.

Calculation of hue values with the original and revised segment classification methods. The proportion of brightness in each segment (R, Y, G, B) was measured from the spectra in Fig. 1 as described in the text. LM is the difference between R and G, and MS is the difference between Y and B. Hue (H) is given in degrees but could also be given in radians. Formulas for hue presented in the original description (Endler, 1990) and their corresponding values are given in the second and fifth formula lines. Revised formulas and the resulting values are in the remaining lines. Values in bold are the correct values given the sign of LM and MS; other (incorrect) values are shown unbolded for comparison. Values in italics would be correct if adjusted by modulus 2π.

t01_01.gif

The application of these corrected formulas may improve the consistency of hue as a metric of color and facilitate its use in comparative studies. In testing methods for quantifying color variation, Grill and Rush (2000) found hue to be the least accurate among the three segment classification variables, particularly for green, blue, and purple spectra. However, this analysis relied on the original formulas, which give incorrect values in that portion of color space. Use of the revised formulas will result in accurate values for hue, a variable that can be directly compared across samples, be they different parts of an individual or different species in a clade. The paper describing the segment classification method (Endler, 1990) has been cited over 700 times, suggesting a potentially vast pool of color studies that would be amenable to broad meta-analyses. Such analyses, however, will be limited by the correct calculation of the color variables. As the correct values for hue can only be confirmed by analyzing the original spectra or, minimally, the LM and MS values, authors should deposit their spectra in publicly accessible repositories (e.g.. Dryad [Piwowar and Vision, 2013] or the Floral Reflectance Database [Arnold et al., 2010]) to maximize the potential use of these data in future studies.

LITERATURE CITED

1.

D. L. Altshuler 2003. Flower color, hummingbird pollination, and habitat irradiance in four Neotropical forests. Biotropica 35: 344–355. Google Scholar

2.

S. E. J. Arnold , S. Faruq , V. Savoleinen , P. McOwan , and L. Chittka . 2010. FReD: The Floral Reflectance Database—A Web portal for analyses of flower colour. PLoS ONE 5: el4287. Google Scholar

3.

J. K. Bowmaker , L. A. Heath , S. E. Wilkie , and D. M. Hunt . 1997. Visual pigments and oil droplets from six classes of photoreceptor in the retinas of birds. Vision Research 37: 2183–2194. Google Scholar

4.

L. Chittka 1992. The color hexagon: A chromaticity diagram based on photoreceptor excitations as a generalized representation of colour opponency. Journal of Comparative Physiology. A, Neuroethology, Sensory, Neural, and Behavioral Physiology 170: 533–543. Google Scholar

5.

L. Chittka , and R. Menzel . 1992. The evolutionary adaptation of flower colors and the insect pollinators’ color vision systems. Journal of Comparative Physiology. A, Neuroethology, Sensory, Neural, and Behavioral Physiology 171: 171–181. Google Scholar

6.

J. A. Endler 1990. On the measurement and classification of color in studies of animal color patterns. Biological Journal of the Linnean Society 41:315–352. Google Scholar

7.

J. A. Endler 1993. The color of light in forests and its implications. Ecological Monographs 63: 1–27. Google Scholar

8.

C. B. Fenster , W. S. Armbruster , P. Wilson , M. R. Dudash , and J. D. Thomson . 2004. Pollination syndromes and floral specialization. Annual Review of Ecology Evolution and Systematics 35: 375–403. Google Scholar

9.

A. Forsman , K. Ringblom , E. Civantos , and J. Ahnesjo . 2002. Coevolution of color pattern and thermoregulatory behavior in polymorphic pygmy grasshoppers Tetrix undulata. Evolution; International Journal of Organic Evolution 56: 349–360. Google Scholar

10.

A. Gautier-Hion , J. M. Duplantier , R. Quris , F. Feer , C. Sourd , J. P. Decoux , G. Dubost , et al. 1985. Fruit characters as a basis of fruit choice and seed dispersal in a tropical forest vertebrate community. Oecologia 65: 324–337. Google Scholar

11.

C. P. Grill , and V. N. Rush . 2000. Analysing spectral data: Comparison and application of two techniques. Biological Journal of the Linnean Society 69: 121–138. Google Scholar

12.

S. A. Hodges , J. B. Whittall , M. Fulton , and J. Y. Yang . 2002. Genetics of floral traits influencing reproductive isolation between Aquilegia formosa and A. pubescens. American Naturalist 159: S51–S60. Google Scholar

13.

R. E. Irwin , S. Y. Strauss , S. Storz , A. Emerson , and G. Guibert . 2003. The role of herbivores in the maintenance of a flower color polymorphism in wild radish. Ecology 84: 1733–1743. Google Scholar

14.

E. P. Lacey , M. B. Lovin , S. J. Richter , and D. A. Herington . 2010. Floral reflectance, color, and thermoregulation: What really explains geographic variation in thermal acclimation ability of ectotherms? American Naturalist 175: 335–349. Google Scholar

15.

Munsell Color Company. 1976. Munsell book of color: Glossy finish collection. Munsell Color Company. Baltimore, Maryland, USA. Google Scholar

16.

J. L. Parra 2010. Color evolution in the hummingbird genus Coeligena. Evolution; International Journal of Organic Evolution 64: 324–335. Google Scholar

17.

H. A. Piwowar , and T. J. Vision . 2013. Data from: Data reuse and the open data citation advantage. Dryad Digital Repository,  http://dx.doi.org/10.5061/dryad.781pvGoogle Scholar

18.

J. M. Robertson. , and E. B. Rosenblum . 2009. White Sands ecotone for three lizard species under strong selection. Biological Journal of the Linnean Society 98: 243–255. Google Scholar

19.

A. Roorda , and D. R. Williams . 1999. The arrangement of the three cone classes in the living human eye. Nature 397: 520–522. Google Scholar

20.

S. D. Smith , C. Ané , and D. A. Baum . 2008. The role of pollinator shifts in the floral diversification of Iochroma (Solanaceae). Evolution; International Journal of Organic Evolution 62: 793–806. Google Scholar

21.

S. Y. Strauss , and N. I. Cacho . 2013. Nowhere to run, nowhere to hide: The importance of enemies and apparency in adaptation to harsh soil environments. American Naturalist 182: E1–E14. Google Scholar

22.

M. Vorobyev , and D. Osorio . 1998. Receptor noise as a determinant of colour thresholds. Proceedings of the Royal Society. B. Biological Sciences 265: 351–358. Google Scholar

Appendices

Appendix 1.

Protocol for calculating segment classification color variables.

tA01_01.gif

Table A1.

Standardized reflectance data for the 11 example spectra digitized from Endler (1990). See also Fig. 1. Values for R, Y, G, B, LM, MS, C, and H for these spectra are given in the text (Table 1).

tA02_01.gif

Notes

[1] The author thanks J. Ng and C. Ané for helpful comments. This work was supported by the National Science Foundation (DEB 1256678).

Stacey D. Smith "Quantifying Color Variation: Improved Formulas for Calculating Hue with Segment Classification," Applications in Plant Sciences 2(3), (26 February 2014). https://doi.org/10.3732/apps.1300088
Received: 16 November 2013; Accepted: 24 January 2014; Published: 26 February 2014
KEYWORDS
brightness
chroma
flower color
hue
reflectance spectrum
segment classification
Back to Top