Jump to content

Hue: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
RitKill (talk | contribs)
Replaced radians with degrees
Replaced radians as bracketed alternatives.
Line 8: Line 8:
In an [[RGB color space]], '''hue''' can be thought of as an [[angle]] ''φ'' in standard position. To calculate ''φ'', let ''R'', ''G'', ''B'' be the color coordinates in RGB space, defined on a scale from zero to one. Then, after obtaining the [[brightness]] ''μ'' and the [[saturation (color theory)|saturation]] ''σ'', the hue could be obtained from
In an [[RGB color space]], '''hue''' can be thought of as an [[angle]] ''φ'' in standard position. To calculate ''φ'', let ''R'', ''G'', ''B'' be the color coordinates in RGB space, defined on a scale from zero to one. Then, after obtaining the [[brightness]] ''μ'' and the [[saturation (color theory)|saturation]] ''σ'', the hue could be obtained from
:<math> \phi = \arccos \left( {R - \mu \over \sigma \sqrt{2}} \right) </math>
:<math> \phi = \arccos \left( {R - \mu \over \sigma \sqrt{2}} \right) </math>
(Compare with [[standard score]]). Using this formula, ''&phi;'' = 0 would correspond to red, while ''&phi;'' = 120° would correspond to blue, and ''&phi;'' = 240° would correspond to green.
(Compare with [[standard score]]). Using this formula, ''&phi;'' = 0[[Degree (angle)|&deg;]] [0[[Radian|<sup>c</sup>]]] would corresponds to red, while ''&phi;'' = 120&deg; [2&pi;/3<sup>c</sup>] would correspond to blue, and ''&phi;'' = 240&deg; [4&pi;/3<sup>c</sup>] would correspond to green.


The RGB coordinates should be derivable from the ''&mu;'', ''&sigma;'', ''&phi;'' coordinates as follows:
The RGB coordinates should be derivable from the ''&mu;'', ''&sigma;'', ''&phi;'' coordinates as follows:
:<math> R = \mu + \sigma \sqrt{2} \cos \phi, </math>
:<math> R = \mu + \sigma \sqrt{2} \cos \phi, </math>
:<math> G = \mu + \sigma \sqrt{2} \cos \left( \phi + 240^\circ \right), </math>
:<math> G = \mu + \sigma \sqrt{2} \cos \left( \phi + 240^\circ \; \lbrack {4 \pi \over 3} ^c \rbrack \right), </math>
:<math> B = \mu + \sigma \sqrt{2} \cos \left( \phi + 120^\circ \right). </math>
:<math> B = \mu + \sigma \sqrt{2} \cos \left( \phi + 120^\circ \; \lbrack {2 \pi \over 3} ^c \rbrack \right). </math>
Hue is a coordinate (an angle of rotation) in [[HSL color space]] and [[HSV color space]].
Hue is a coordinate (an angle of rotation) in [[HSL color space]] and [[HSV color space]].



Revision as of 16:45, 10 June 2006

This article refers to the gradation of color; for the city in Vietnam, see Huế.
An image with the hue altered
The hue of this Painted Bunting is adjusted over the spectrum.

A hue refers to the gradation of color within the optical spectrum, or visible spectrum, of light. "Hue" may also refer to a particular color within this spectrum, as defined by its dominant wavelength, or the central tendency of its combined wavelengths. For example, a light wave with a central tendency within 565-590 nm will be yellow.

In painting color theory, a hue refers to a pure color —one without added white (tint) or black (shade) pigment.

In an RGB color space, hue can be thought of as an angle φ in standard position. To calculate φ, let R, G, B be the color coordinates in RGB space, defined on a scale from zero to one. Then, after obtaining the brightness μ and the saturation σ, the hue could be obtained from

(Compare with standard score). Using this formula, φ = 0° [0c] would corresponds to red, while φ = 120° [2π/3c] would correspond to blue, and φ = 240° [4π/3c] would correspond to green.

The RGB coordinates should be derivable from the μ, σ, φ coordinates as follows:

Hue is a coordinate (an angle of rotation) in HSL color space and HSV color space.

Manufacturer's of pigments use the word hue e.g. 'Cadmium Yellow (hue)' to indicate that the original pigmentation ingredient, often toxic, has been replaced by safer (or cheaper) alternatives whilst retaining the hue of the original. Replacements are often used for Chromium, Cadmium and Alizarin.

See also