Mathematics
The following are the formulae used in the conversion algorithms. For succinctness, consider primary values normalized ∈ [0, 1] (and hue ∈ [0, 360]) unless stated otherwise.
Normalizing RGB
to achieve R,G,B ∈ [0, 1]
The following are the formulae used in the conversion algorithms. For succinctness, consider primary values normalized ∈ [0, 1] (and hue ∈ [0, 360]) unless stated otherwise.
to achieve R,G,B ∈ [0, 1]