Difference between revisions of "Hexadecimal"

esse quam videri
Jump to: navigation, search
m (Relevance)
Line 1: Line 1:
  
 
=Definition=
 
=Definition=
Hexadecimal, commonly abbreviated to Hex and also known as Base 16, is a method of counting wherein a radix, or base, of 16 is used. In Hexadecimal, [0 - 9] is represented with [0 - 9] like in Decimal but [A - F] is used to represent [10 - 15].
+
Hexadecimal, commonly abbreviated to Hex and also known as Base 16, is a method of counting wherein a radix, or base, of 16 is used. Similar to ASCII, Hexadecimal has every character associated with a unique id. In Hexadecimal, [0 - 9] is represented with [0 - 9] like in Decimal but [A - F] is used to represent [10 - 15].
 
 
  
 
=Relevance=
 
=Relevance=
Line 78: Line 77:
 
|}
 
|}
  
=Example=
+
==='''Hex Code for Color'''===
Hex Colors!
+
----
White: #FFFFFF
+
All graphic design software and companies use hex code to get exact colors for their use. Hex code can pinpoint any color within the visible spectrum and is a great reference guide for people struggling to find a color. 
For white all channels are at its highest point. Red, Green and Blue are all at the maximum value of 255. If F is equal to 15 then 255 will be FF or 15*15. So if 255 is FF then the RGB values would be R:255, G:255, B:255 or R:FF, G:FF, B:FF. Hex puts all of these values together so White would be #FFFFFF.  Because Black is the absence of light or color It hex code would be #000000.
+
 
Red - #FF0000 Green - #00FF00 Blue- #0000FF
+
'''White''': For white, all channels are at its highest point or #FFFFFF. '''Red''', '''Green''', and '''Blue''' are all at a maximum value of 255 when white color is selected.   If F is equal to 15 then 255 will be FF or 15*15. So if 255 is FF then the RGB values would be R:255, G:255, B:255
 +
 
 +
<syntaxhighlight lang ="csharp">R:FF, G:FF, B:FF</syntaxhighlight> Hex puts all of these values together so White would be: <syntaxhighlight lang ="csharp">#FFFFFF</syntaxhighlight>
 +
----
 +
On the other hand, Black is the absence of light or color. It's hex code would be: <syntaxhighlight lang ="csharp">#000000</syntaxhighlight>
 +
 
 +
Similarly:
 +
 
 +
*Pure Red - <syntaxhighlight lang ="csharp">#FF0000</syntaxhighlight>
 +
*Pure Green - <syntaxhighlight lang ="csharp">#00FF00</syntaxhighlight>
 +
*Pure Blue - <syntaxhighlight lang ="csharp">#0000FF</syntaxhighlight>
  
 
=Resources=
 
=Resources=
 +
https://www.theproblemsite.com/reference/mathematics/codes/hexadecimal-code
 +
 
== See also ==
 
== See also ==
  
 
* [[Base 10]]
 
* [[Base 10]]
 
* [[Numeral Systems]]
 
* [[Numeral Systems]]
 
==Notes==
 
 
  
 
==External Links==
 
==External Links==
 
https://en.wikipedia.org/wiki/Hexadecimal
 
https://en.wikipedia.org/wiki/Hexadecimal
 
  
 
[[Category:Programming Language Concepts]]
 
[[Category:Programming Language Concepts]]

Revision as of 19:01, 21 June 2019

Definition

Hexadecimal, commonly abbreviated to Hex and also known as Base 16, is a method of counting wherein a radix, or base, of 16 is used. Similar to ASCII, Hexadecimal has every character associated with a unique id. In Hexadecimal, [0 - 9] is represented with [0 - 9] like in Decimal but [A - F] is used to represent [10 - 15].

Relevance

Explanation

Decimal Hexadecimal
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F
16 10
32 20
100 64
165 A5
255 FF
256 100

Hex Code for Color


All graphic design software and companies use hex code to get exact colors for their use. Hex code can pinpoint any color within the visible spectrum and is a great reference guide for people struggling to find a color.

White: For white, all channels are at its highest point or #FFFFFF. Red, Green, and Blue are all at a maximum value of 255 when white color is selected. If F is equal to 15 then 255 will be FF or 15*15. So if 255 is FF then the RGB values would be R:255, G:255, B:255

R:FF, G:FF, B:FF
Hex puts all of these values together so White would be:
#FFFFFF

On the other hand, Black is the absence of light or color. It's hex code would be:
#000000

Similarly:

  • Pure Red -
    #FF0000
    
  • Pure Green -
    #00FF00
    
  • Pure Blue -
    #0000FF
    

Resources

https://www.theproblemsite.com/reference/mathematics/codes/hexadecimal-code

See also

External Links

https://en.wikipedia.org/wiki/Hexadecimal