Theory of Colors


(Samples of Colors are included in the tables at the end of this page)

 

  Colors are one of the integral parts in programming technology. Colors also have extensive applications in architecture, engineering, interior design, graphic design, computer-aided design, animation, virtual reality, and so many other fields and disciplines. I thought to compile and analyze colors from a programming point of view.

  Colors can be classified based on Common Name, Decimal RGB, Hexadecimal RGB, Hue, Saturation, Value, Tint, Shade, and Commercial Name.

  Color’s RGB refers to mixing Red (R), Green (G), and Blue (B) to obtain a certain color.  In the RGB classification, Red, Green, or Blue is described by a whole number between and including 0 and 255. A whole number in general is defined as a number that is positive and integer and zero is considered as a whole number. Thus Red, Green, or Blue is described by a positive integer between 0 and 255 (0 and 255 inclusive). It follows that Red, Green, or Blue can have one of 256 numerical values. This is as zero is included as a possible value.

  A color’s RGB can be described using the decimal number system. In the decimal system, the Red (R) is represented by 3 digits, the Green (G) is represented by 3 digits, and the Blue (B) is represented by 3 digits. The three sets of 3 digits each are separated by a comma or by a hyphen. Example the color Alice Blue is described as 240, 248, 255 or 240-248-255.

  A color’s RGB can also be described using the hexadecimal number system. In the Hexadecimal System, the Red (R) is represented by 2 entities that are digits and/or letters (A through F), the Green (G) is represented by 2 entities that are digits and/or letters (A through F), and the Blue (B) is represented by 2 entities that are digits and/or letters (A through F). Example the color Alice Blue is described as #F0F8FF. “F0” in the Hexadecimal System means 240 in the Decimal System, “F8” in the Hexadecimal System means 248 in the Decimal System. “FF” in the Hexadecimal System means 255 in the Decimal System, Thus #F0F8FF in the Hexadecimal System means 240-248-255 (or 240,248,255) in the Decimal System.

  The Hexadecimal Numbers System uses the ten Arabic numbers 0 through 9 (0 and 9 inclusive) plus the letters A through F (A and F inclusive). Thus the Hexadecimal Numbers System uses 6 of these 16 entities to describe one color or another.

 

  Color’s hue refers to the color's direction from white, for example in a color wheel or chromaticity diagram.

  Color’s saturation refers to the color’s intensity or concentration. Color’s saturation is a term that is also described in terms as colorfulness, chrome, or purity.

  Color’s value refers to the color’s brightness, lightness, or how light or dark a color is.

  Color’s tint refers to a color made lighter by adding the white color.

  Color’s shade refers to a color made darker by adding the black color.

  Color’s commercial names refers to color names used aside from the common color names.

  I will first classify colors based on Common Name, Decimal RGB, and Hexadecimal RGB. When using the RGB notion, we need to address the concept of Permutations and Combinations. I will try to simplify the mathematical formulas. P refers to Permutations. C refers to Combinations. Factorial is represented by the symbol “!”. Power is represented by the symbol “^”. Multiplication is represented by the symbol “*”. Division is represented by the symbol “/”.Mathematical Precedence is represented by parenthesis.

P (n, r) without repetition {n>=r} = (n)! / (n-r)!

P (n, r) with repetition  = (n) ^ (r)

C (n, r) without repetition {n>=r} = (n)! / ( (n-r)! * (r)! )!

C (n, r) with repetition  = (n+r-1)! / ( (n-1)! * (r)! )

The RGB is covered by Permutation with repetition where n= 256 and r=3.

  Therefore:

P (n, r) with repetition  = (n) ^ (r)  = (256) ^ (3) = 16, 777, 216

Thus the RGB can describe 16, 777, 216 colors.

  A human eye with perfect vision can see up to 10 million colors. Therefore the RGB can cover more than an eye can see.

  The following is a list of 282 commonly known colors. This list is sorted by different criteria in 4 separate tables.  In each table, the first field is the index, the second field is the color’s common name, the third field is the color’s Decimal RGB, the fourth field is the color’s Hexadecimal RGB, and the fifth field is the color’s appearance.

The 4 tables are organized as follows:

Table 1: Colors Sorted by Color Common Name in Alphabetically Ascending Order.

Table 2: Colors Sorted by Color Common Name in Alphabetically Descending Order.

Table 3: Colors Sorted by Color Decimal RGB in Numerically Ascending Order / Color Hexadecimal RGB in Alphanumerically Ascending Order.

Table 4: Colors Sorted by Color Decimal RGB in Numerically Descending Order / Hexadecimal RGB in Alphanumerically Descending Order.


Programming Lessons_20191124_1121_27
Programming Lessons_20191129_1626_12
Programming Lessons_20191130_1112_41
Programming Lessons_20191130_1131_40