top of page

HSL to RGB color conversion

Page: 1   2   3   4   5   6   7   8 

1.jpg

1. C, X, 0 Chart

1..jpg

RGB Max: R′G′B′ of the largest RGB code is equal to chroma (C).

RGB Intermediate: R′G′B′ of the second largest RGB code is equal to X. There are two variants of X: Xu and Xd.

RGB min: R′G′B′ for the smallest RGB code is equal to zero (0).

2. Calculation of R, G, B max

RGB max: R, G, B decimal code with greatest value. Absolute value = |0 - 255|.

2.0 - When R′, G′, B′ = Chroma (C):

1.0. Chroma.jpg

2.1 - Simplifying the equations:

1.1 Chroma.jpg

3. Calculation of RGB Intermediate (Slope Up)

3.0 - When R′, G′, B′ = X slope up (XU):

3.jpg

3.1 - Simplifying the equations:

0.jpg

4. Calculation of RGB Intermediate (Slope Down)

4.0 - Hue - Absolute value conversion:

1,.jpg

4.1 - When R′, G′, B′ = X slope down (XD):

2.jpg

4.2 - Simplifying the equations:

0.jpg

HSL to RGB color conversion

Page: 1   2   3   4   5   6   7   8 

bottom of page