Author Topic: Color Names and Custom Colors  (Read 8844 times)

0 Members and 1 Guest are viewing this topic.

Offline Mysterious Benefactor

  • Systems Manager /
  • Administrator
  • NEW SUPERNAL SCEPTER
  • *****
  • Posts: 16240
  • Karma: +205/-12199
  • Gender: Male
    • View Profile
Color Names and Custom Colors
« on: August 08, 2002, 07:00:24 AM »
Before you look at the color table below, I should explain what RGB codes are and how to interpret them.

In the world of computers, we presently have 16,777,216 different colors to work with, and all of them are defined in terms of their Red, Green and Blue values - RGB for short. Each of those three colors can have any one of 256 values, ranging from 0 to 255, and in combination with the 256 possible values of the other two, they make up all 16,777,216 colors (2563 or 256 X 256 X 256 = 16,777,216  And some of you probably thought nothing you ever learned in Math class would ever have any practical value? Well just wait - it gets worse! :D)

HTML relies most often on the hexadecimal representation of 0-255 to code all 16,777,216 colors. (See - I told you it would get worse. ;D) Now, I'm sure you all remember that hexadecimal notation uses the digits 0 through 9 as well as the letters A through F. So, the numbers 0 through 255 are represented in the following manner in the table below when converted from decimal (Base 10, which is what we use nearly every day of our lives) into hexadecimal (Base 16, which people like me, who program computers and/or do advanced work on the Web use nearly every day of our lives because so many aspects of programming revolve around multiples of 16 in one way or another.)


0 = #00

86 = #56

171 = #AB
1 = #0187 = #57172 = #AC
2 = #0288 = #58173 = #AD
3 = #0389 = #59174 = #AE
4 = #0490 = #5A175 = #AF
5 = #0591 = #5B176 = #B0
6 = #0692 = #5C177 = #B1
7 = #0793 = #5D178 = #B2
8 = #0894 = #5E179 = #B3
9 = #0995 = #5F180 = #B4
10 = #0A96 = #60181 = #B5
11 = #0B97 = #61182 = #B6
12 = #0C98 = #62183 = #B7
13 = #0D99 = #63184 = #B8
14 = #0E100 = #64185 = #B9
15 = #0F101 = #65186 = #BA
16 = #10102 = #66187 = #BB
17 = #11103 = #67188 = #BC
18 = #12104 = #68189 = #BD
19 = #13105 = #69190 = #BE
20 = #14106 = #6A191 = #BF
21 = #15107 = #6B192 = #C0
22 = #16108 = #6C193 = #C1
23 = #17109 = #6D194 = #C2
24 = #18110 = #6E195 = #C3
25 = #19111 = #6F196 = #C4
26 = #1A112 = #70197 = #C5
27 = #1B113 = #71198 = #C6
28 = #1C114 = #72199 = #C7
29 = #1D115 = #73200 = #C8
30 = #1E116 = #74201 = #C9
31 = #1F117 = #75202 = #CA
32 = #20118 = #76203 = #CB
33 = #21119 = #77204 = #CC
34 = #22120 = #78205 = #CD
35 = #23121 = #79206 = #CE
36 = #24122 = #7A207 = #CF
37 = #25123 = #7B208 = #D0
38 = #26124 = #7C209 = #D1
39 = #27125 = #7D210 = #D2
40 = #28126 = #7E211 = #D3
41 = #29127 = #7F212 = #D4
42 = #2A128 = #80213 = #D5
43 = #2B129 = #81214 = #D6
44 = #2C130 = #82215 = #D7
45 = #2D131 = #83216 = #D8
46 = #2E132 = #84217 = #D9
47 = #2F133 = #85218 = #DA
48 = #30134 = #86219 = #DB
49 = #31135 = #87220 = #DC
50 = #32136 = #88221 = #DD
51 = #33137 = #89222 = #DE
52 = #34138 = #8A223 = #DF
53 = #35139 = #8B224 = #E0
54 = #36140 = #8C225 = #E1
55 = #37141 = #8D226 = #E2
56 = #38142 = #8E227 = #E3
57 = #39143 = #8F228 = #E4
58 = #3A144 = #90229 = #E5
59 = #3B145 = #91230 = #E6
60 = #3C146 = #92231 = #E7
61 = #3D147 = #93232 = #E8
62 = #3E148 = #94233 = #E9
63 = #3F149 = #95234 = #EA
64 = #40150 = #96235 = #EB
65 = #41151 = #97236 = #EC
66 = #42152 = #98237 = #ED
67 = #43153 = #99238 = #EE
68 = #44154 = #9A239 = #EF
69 = #45155 = #9B240 = #F0
70 = #46156 = #9C241 = #F1
71 = #47157 = #9D242 = #F2
72 = #48158 = #9E243 = #F3
73 = #49159 = #9F244 = #F4
74 = #4A160 = #A0245 = #F5
75 = #4B161 = #A1246 = #F6
76 = #4C162 = #A2247 = #F7
77 = #4D163 = #A3248 = #F8
78 = #4E164 = #A4249 = #F9
79 = #4F165 = #A5250 = #FA
80 = #50166 = #A6251 = #FB
81 = #51167 = #A7252 = #FC
82 = #52168 = #A8253 = #FD
83 = #53169 = #A9254 = #FE
84 = #54170 = #AA255 = #FF
85 = #55

Now, why am I trying to confuse you? Honestly, I'm not. Really! :) I'm just trying to give you a better feel for how colors work on the Web and in computing in general. And I'm also trying to give you a way to translate hexadecimal color codes into something that you can use in some of the software that's probably already on your computer.
For instance, many graphics programs allow you to define custom colors to use for backgrounds, text, borders, etc. And if you like some of the colors that you can use on the forum, with all this stuff as a background, you should be able to add them to your custom colors in whatever program you might like to use them. [winkb] But before we move on, let's take a look at the colors that are available on the forum (though I should warn that some older browsers - particularly older versions of IE - will not be able to display these colors correctly because they were originally developed for Netscape, but have since been adopted into standard HTML):

 
Color NameRGB CodeColor NameRGB Code
----------------------------
aliceblue#F0F8FFlightsalmon#FFA07A
antiquewhite#FAEBD7lightseagreen#20B2AA
aqua#00FFFFlightskyblue#87CEFA
aquamarine#7FFFD4lightslategray#778899
azure#F0FFFFlightsteelblue#B0C4DE
beige#F5F5DClightyellow#FFFFE0
bisque#FFE4C4lime#00FF00
black#000000limegreen#32CD32
blanchedalmond#FFEBCDlinen#FAF0E6
blue#0000FFmagenta#FF00FF
blueviolet#8A2BE2maroon#800000
brown#A52A2Amediumaquamarine#66CDAA
burlywood#DEB887mediumblue#0000CD
cadetblue#5F9EA0mediumorchid#BA55D3
chartreuse#7FFF00mediumpurple#9370DB
chocolate#D2691Emediumseagreen#3CB371
coral#FF7F50mediumslateblue#7B68EE
cornflowerblue#6495EDmediumspringgreen#00FA9A
cornsilk#FFF8DCmediumturquoise#48D1CC
crimson#DC143Cmediumvioletred#C71585
cyan#00FFFFmidnightblue#191970
darkblue#00008Bmintcream#F5FFFA
darkcyan#008B8Bmistyrose#FFE4E1
darkgoldenrod#B8860Bmoccasin#FFE4B5
darkgray#A9A9A9navajowhite#FFDEAD
darkgreen#006400navy#000080
darkkhaki#BDB76Boldlace#FDF5E6
darkmagenta#8B008Bolive#808000
darkolivegreen#556B2Folivedrab#6B8E23
darkorange#FF8C00orange#FFA500
darkorchid#9932CCorangered#FF4500
darkred#8B0000orchid#DA70D6
darksalmon#E9967Apalegoldenrod#EEE8AA
darkseagreen#8FBC8Fpalegreen#98FB98
darkslateblue#483D8Bpaleturquoise#AFEEEE
darkslategray#2F4F4Fpalevioletred#DB7093
darkturquoise#00CED1papayawhip#FFEFD5
darkviolet#9400D3peachpuff#FFDAB9
deeppink#FF1493peru#CD853F
deepskyblue#00BFFFpink#FFC0CB
dimgray#696969plum#DDA0DD
dodgerblue#1E90FFpowderblue#B0E0E6
firebrick#B22222purple#800080
floralwhite#FFFAF0red#FF0000
forestgreen[font=Courier  New]#228B22[/font]rosybrown#BC8F8F
fuchsia#FF00FFroyalblue#4169E1
gainsboro#DCDCDCsaddlebrown#8B4513
ghostwhite#F8F8FFsalmon#FA8072
gold#FFD700sandybrown#F4A460
goldenrod#DAA520seagreen#2E8B57
gray#808080seashell#FFF5EE
green#008000sienna#A0522D
greenyellow#ADFF2Fsilver#C0C0C0
honeydew#F0FFF0skyblue#87CEEB
hotpink#FF69B4slateblue#6A5ACD
indianred#CD5C5Cslategray#708090
indigo#4B0082snow#FFFAFA
ivory#FFFFF0springgreen#00FF7F
khaki#F0E68Csteelblue#4682B4
lavender#E6E6FAtan#D2B48C
lavenderblush#FFF0F5teal#008080
lawngreen#7CFC00thistle#D8BFD8
lemonchiffon#FFFACDtomato#FF6347
lightblue#ADD8E6turquoise#40E0D0
lightcoral#F08080violet#EE82EE
lightcyan#E0FFFFwheat#F5DEB3
lightgoldenrodyellow#FAFAD2white#FFFFFF
lightgreen#90EE90whitesmoke#F5F5F5
lightgrey#D3D3D3yellow#FFFF00
lightpink#FFB6C1yellowgreen#9ACD32

A lengthy list, but really quite small when you consider that there are actually 16,777,216 colors available. These are merely the colors that someone decided to name so that people without a Math or Computer Science degree could avoid using hexadecimal codes and use understandable words instead. (And I seriously doubt that anyone will ever sit down and try to name all 16,777,216 available colors! [wink2])

So, say you've decided that you like mediumturquoise so much that you want to make it one of your custom colors. However, your software wants you to enter three numbers between 0 and 255 to define a color. As you can see in the chart above, the hexadecimal code for mediumturquoise is #48D1CC. How do you make that information useful? Well, you break it up into its Red, Green, and Blue components, and then with the chart I've provided, you convert the hexadecimal code to its equivelent decimal number between 0 and 255 (0 being its darkest shade, 255 its brightest).
For #48D1CC, the Red component is the first two characters after the number sign, so Red equals 48 hexadecimal. The Green component is the two middle characters, so D1 hexadecimal is the Green component. And the last two characters are the Blue component, which is CC.
Now, going back to refer to the chart I've provided, you'll see that 48 hexadecimal equals 72, D1 hexadecimal equals 209, and CC hexadecimal equals 204. So, to add the color mediumturquoise to your software's custom colors, you'd enter the following values:

Red = 72
Green = 209
Blue = 204

End of today's lesson. But you can be sure that this won't be the last one I'll ever post. [lghy] And if I've whet your appetite to learn more on this subject, I suggest you check out the following link:

HTML Color Names

where you'll not only be able to get a better idea of what each of the colors looks like, you'll find links to all sorts of HTML related topics.


Have fun posting with all the new colors!

The MB

Offline Raineypark

  • DSF God
  • *****
  • Posts: 2749
  • Karma: +13053/-14422
    • View Profile
Re: Color Names and Custom Colors
« Reply #1 on: August 08, 2002, 03:23:29 PM »
That's one hell of a Crayon box you've got there, Pepe....how nice of you to offer to share.... ::)

Rainey  ;)
"Do not go gentle into that good night.  Rage, rage against the dying of the light."
Dylan Thomas

Offline Patti Feinberg

  • Full A ed Newest Fervor Post
  • DSF God
  • *****
  • Posts: 3291
  • Karma: +1729/-3046
  • Gender: Female
    • View Profile
(Re: Color Names and Custom Colors
« Reply #2 on: August 10, 2002, 02:08:45 AM »
[size=42]aaaaaahhhhhhhhh[/size]



:'( :'(MB just sent Patti

[size=36]shrieking[/size]

into the night.
(is  that spelled right? I tried it both ways?)

Be careful small children and pets.

Over the edge...into the abyss.

Jesus saves† (ah ha!!  a cross!!! is anyone impressed?)

the late, lamented, insane:
Patio Furniture
aka Patti Feinberg

Okay...MB (mercy!!), why, if I put the html??? code for a cross, and it appears on my message as a cross, does it come out as that above jibberish? There's no & or # involved....I was going to impress you  :'(  :'(
What a Woman!

Offline CandleLighter

  • Full A ed Newest Fervor Post
  • Full Poster
  • ***
  • Posts: 130
  • Karma: +5/-102
  • Gender: Female
    • View Profile
Re: Color Names and Custom Colors
« Reply #3 on: August 16, 2002, 10:09:29 AM »
thanks for posting these [thumb]

Offline Cassandra

  • Full A ed Newest Fervor Post
  • Senior Poster
  • ****
  • Posts: 2239
  • Karma: +152/-322
  • Gender: Female
  • I love DS!
    • View Profile
Re: Color Names and Custom Colors
« Reply #4 on: August 19, 2002, 09:26:51 PM »
Thanks MB!!  These are great!


 nice color  
love these colors!    
what a color
wow! [/glow]
"Calamity Jane"

Offline Cassandra

  • Full A ed Newest Fervor Post
  • Senior Poster
  • ****
  • Posts: 2239
  • Karma: +152/-322
  • Gender: Female
  • I love DS!
    • View Profile
Re: Color Names and Custom Colors
« Reply #5 on: August 19, 2002, 09:34:02 PM »
this is a nice color!!

  trying out new things!!

these are great!
"Calamity Jane"

Offline Cassandra

  • Full A ed Newest Fervor Post
  • Senior Poster
  • ****
  • Posts: 2239
  • Karma: +152/-322
  • Gender: Female
  • I love DS!
    • View Profile
Re: Color Names and Custom Colors
« Reply #6 on: August 20, 2002, 08:39:58 PM »
 LOVE ALL THESE HOT COLORS

 pink is my favorite color [/glow]
"Calamity Jane"

Offline jennifer

  • Full A ed Newest Fervor Post
  • DSF God
  • *****
  • Posts: 2784
  • Karma: +541/-615
  • Gender: Female
  • we'll always love you Don!
    • View Profile
Re: Color Names and Custom Colors
« Reply #7 on: August 21, 2002, 03:06:07 AM »
[size=*]OMG[/size]
i am right behind Patti(must be the name) and yes I'm impressed Patti!
have to read this when my head is not spinning after
this horrid heatwave[sun] and a day of housework!Also [size=8]is it time to go back to school yet[/size]


jennifer[spin][spin][spin][spin][spin][spin]
PS THE RED SOX s....
sorry usually more ladylike but it's been a week!
i'll be back :)

psshey it worked
a lot of my colors look the same though is it my computer?
we are the champions!!!!
 2007 Boston Red Sox
PAV

Offline Midnite

  • Exec Moderator /
  • Administrator
  • SENIOR ASCENDANT
  • *****
  • Posts: 10716
  • Karma: +717/-4892
  • Gender: Female
    • View Profile
Re: Color Names and Custom Colors
« Reply #8 on: August 21, 2002, 04:34:35 AM »
Quote
psshey it worked
a lot of my colors look the same though is it my computer?

It's easier to see the difference when the letters are larger:
lightseagreen
aqua


My favorite is the dodgerblue.  Guess why, hee hee!!

Offline Mysterious Benefactor

  • Systems Manager /
  • Administrator
  • NEW SUPERNAL SCEPTER
  • *****
  • Posts: 16240
  • Karma: +205/-12199
  • Gender: Male
    • View Profile
Re: Color Names and Custom Colors
« Reply #9 on: August 21, 2002, 06:43:09 AM »
Quote
a lot of my colors look the same though is it my computer?

Not all versions of IE recognize all the color names. It might be that you need to upgrade in order to see them correctly.

Offline jennifer

  • Full A ed Newest Fervor Post
  • DSF God
  • *****
  • Posts: 2784
  • Karma: +541/-615
  • Gender: Female
  • we'll always love you Don!
    • View Profile
Re: Color Names and Custom Colors
« Reply #10 on: August 21, 2002, 11:20:10 PM »
THanks MB and Midnite

maybe i should go out and get a Dell heehee!

jennifer
we are the champions!!!!
 2007 Boston Red Sox
PAV

Offline Minja

  • Full A ed Newest Fervor Post
  • Full Poster
  • ***
  • Posts: 528
  • Karma: +1978/-2064
  • Gender: Female
    • View Profile
Re: Color Names and Custom Colors
« Reply #11 on: August 26, 2002, 09:36:03 PM »
Testing[/color]

[shadow=#FF00FF,left,300]Always, Minja  8)[/shadow]

Sheez, I'm behind in everything.[/color]
Because I knew you, I have been changed for good.
-From the song "For Good" from "Wicked"

Offline Patti Feinberg

  • Full A ed Newest Fervor Post
  • DSF God
  • *****
  • Posts: 3291
  • Karma: +1729/-3046
  • Gender: Female
    • View Profile
Re: Color Names and Custom Colors
« Reply #12 on: July 04, 2003, 03:02:54 AM »
That's one hell of a Crayon box you've got there, Pepe....how nice of you to offer to share.... ::)

Rainey  ;)

[text=cornflowerblue]testing testing[/cornflowerblue]

(what would happen on here if I put the corresponding code instead of word color??
Patti

hmmm...why no cornflowerblue available???
What a Woman!

Offline Midnite

  • Exec Moderator /
  • Administrator
  • SENIOR ASCENDANT
  • *****
  • Posts: 10716
  • Karma: +717/-4892
  • Gender: Female
    • View Profile
Re: Color Names and Custom Colors
« Reply #13 on: July 04, 2003, 04:41:49 AM »
[text=cornflowerblue]testing testing[/cornflowerblue]

(what would happen on here if I put the corresponding code instead of word color??
Patti

hmmm...why no cornflowerblue available???

It is available, but that's what happens when you experiment with the codes. ;)

Incorrect:
Code: [Select]
[text=cornflowerblue]testing testing[/cornflowerblue]correct:
Code: [Select]
[color=cornflowerblue]testing testing[/color]

Offline onyx_treasure

  • Full A ed Newest Fervor Post
  • Senior Poster
  • ****
  • Posts: 692
  • Karma: +3458/-2900
  • Gender: Female
    • View Profile
Re:Color Names and Custom Colors
« Reply #14 on: July 04, 2003, 07:20:40 PM »
Just wanted to see if I could do it right in two different colors
[shadow=hotpink, left]onyx treasure[/shadow]
There are two means of refuge from the misery of life--music and cats.  Albert Schweitzer