By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Do A97 color number values reflect some recognized standard?

P: n/a
MLH
I'm wondering if the BackColor property values for
the colors built-in to A97 come from some internationally
recognized standard. I have a list of a hundred or so
colors with hex values and I'm wondering if they are
compatible.
Nov 13 '05 #1
Share this Question
Share on Google+
19 Replies


P: n/a
MLH
I would like to know if someone has put together a list of color
names and values that match the MS Access color values? I
don't have to have a particularly long list, but the longer the
better. I have a list. I don't think it matches at all...

ColorName HexCode Base10Value
Black 000000 0
Navy 000080 128
DarkBlue 00008B 139
MediumBlue 0000CD 205
Blue 0000FF 255
DarkGreen 006400 25600
Green 008000 32768
Teal 008080 32896
DarkCyan 008B8B 35723
DeepSkyBlue 00BFFF 49151
DarkTurquoise 00CED1 52945
MediumSpringGreen 00FA9A 64154
Lime 00FF00 65280
SpringGreen 00FF7F 65407
Aqua 00FFFF 65535
MidnightBlue 191970 1644912
DodgerBlue 1E90FF 2003199
LightSeaGreen 20B2AA 2142890
ForestGreen 228B22 2263842
SeaGreen 2E8B57 3050327
DarkSlateGray 2F4F4F 3100495
LimeGreen 32CD32 3329330
MediumSeaGreen 3CB371 3978097
Turquoise 40E0D0 4251856
RoyalBlue 4169E1 4286945
SteelBlue 4682B4 4620980
DarkSlateBlue 483D8B 4734347
MediumTurquoise 48D1CC 4772300
Indigo 4B0082 4915330
DarkOliveGreen 556B2F 5597999
CadetBlue 5F9EA0 6266528
CornflowerBlue 6495ED 6591981
MediumAquamarine 66CDAA 6737322
DimGray 696969 6908265
SlateBlue 6A5ACD 6970061
OliveDrab 6B8E23 7048739
SlateGray 708090 7372944
LightSlateGray 778899 7833753
MediumSlateBlue 7B68EE 8087790
LawnGreen 7CFC00 8190976
Chartreuse 7FFF00 8388352
Aquamarine 7FFFD4 8388564
Maroon 800000 8388608
Purple 800080 8388736
Olive 808000 8421376
Gray 808080 8421504
SkyBlue 87CEEB 8900331
LightSkyBlue 87CEFA 8900346
BlueViolet 8A2BE2 9055202
DarkRed 8B0000 9109504
DarkMagenta 8B008B 9109643
SaddleBrown 8B4513 9127187
DarkSeaGreen 8FBC8F 9419919
LightGreen 90EE90 9498256
MediumPurple 9370DB 9662683
DarkViolet 9400D3 9699539
PaleGreen 98FB98 10025880
DarkOrchid 9932CC 10040012
YellowGreen 9ACD32 10145074
Sienna A0522D 10506797
Brown A52A2A 10824234
DarkGray A9A9A9 11119017
LightBlue ADD8E6 11393254
GreenYellow ADFF2F 11403055
PaleTurquoise AFEEEE 11529966
LightSteelBlue B0C4DE 11584734
PowderBlue B0E0E6 11591910
Firebrick B22222 11674146
DarkGoldenrod B8860B 12092939
MediumOrchid BA55D3 12211667
RosyBrown BC8F8F 12357519
DarkKhaki BDB76B 12433259
Silver C0C0C0 12632256
MediumVioletRed C71585 13047173
IndianRed CD5C5C 13458524
Peru CD853F 13468991
Chocolate D2691E 13789470
Tan D2B48C 13808780
LightGrey D3D3D3 13882323
Thistle D8BFD8 14204888
Orchid DA70D6 14315734
Goldenrod DAA520 14329120
PaleVioletRed DB7093 14381203
Crimson DC143C 14423100
Gainsboro DCDCDC 14474460
Plum DDA0DD 14524637
Burlywood DEB887 14596231
LightCyan E0FFFF 14745599
Lavender E6E6FA 15132410
DarkSalmon E9967A 15308410
Violet EE82EE 15631086
PaleGoldenrod EEE8AA 15657130
LightCoral F08080 15761536
Khaki F0E68C 15787660
AliceBlue F0F8FF 15792383
Honeydew F0FFF0 15794160
Azure F0FFFF 15794175
SandyBrown F4A460 16032864
Wheat F5DEB3 16113331
Beige F5F5DC 16119260
WhiteSmoke F5F5F5 16119285
MintCream F5FFFA 16121850
GhostWhite F8F8FF 16316671
Salmon FA8072 16416882
AntiqueWhite FAEBD7 16444375
Linen FAF0E6 16445670
LightGoldenrodYellow FAFAD2 16448210
OldLace FDF5E6 16643558
Red FF0000 16711680
Magenta FF00FF 16711935
DeepPink FF1493 16716947
OrangeRed FF4500 16729344
Tomato FF6347 16737095
HotPink FF69B4 16738740
Coral FF7F50 16744272
DarkOrange FF8C00 16747520
LightSalmon FFA07A 16752762
Orange FFA500 16753920
LightPink FFB6C1 16758465
Pink FFC0CB 16761035
Gold FFD700 16766720
PeachPuff FFDAB9 16767673
NavajoWhite FFDEAD 16768685
Moccasin FFE4B5 16770229
Bisque FFE4C4 16770244
MistyRose FFE4E1 16770273
BlanchedAlmond FFEBCD 16772045
PapayaWhip FFEFD5 16773077
LavenderBlush FFF0F5 16773365
Seashell FFF5EE 16774638
Cornsilk FFF8DC 16775388
LemonChiffon FFFACD 16775885
FloralWhite FFFAF0 16775920
Snow FFFAFA 16775930
Yellow FFFF00 16776960
LightYellow FFFFE0 16777184
Ivory FFFFF0 16777200
White FFFFFF 16777215
Nov 13 '05 #2

P: n/a
MLH <CR**@NorthState.net> wrote in
news:7p********************************@4ax.com:
I'm wondering if the BackColor property values for
the colors built-in to A97 come from some internationally
recognized standard. I have a list of a hundred or so
colors with hex values and I'm wondering if they are
compatible.


The Hex values are exactly the same as those used in HTML, since
each pair of Hex digits is an R/G/B color.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #3

P: n/a
MLH
Thx for the 'heads up' on that, David. I guess the color names
I have there are way off. A number of the color names simply
do NOT match the color displayed at all. I probably just have
a bad list of names - or maybe I'm color-blinded or just getting
too old to see good.

I put them in an access report, filling in a rectangle with the
color produced by the stated values. They seemed horribly
off to me.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The Hex values are exactly the same as those used in HTML, since
each pair of Hex digits is an R/G/B color.


Nov 13 '05 #4

P: n/a
David is correct. Perhaps the following will help you do some tests
for yourself:

I use frmColor with two command buttons and four text boxes.
cmdGetColorValue cmdDecomposeColor

____ ____ ____ __________
R |__| G |__| B |__| <===> Color Value |________|
'Begin code behind form--------
Option Compare Database
Option Explicit

Private Sub cmdDecomposeColor_Click()
Dim lngTemp As Long
Dim lngR As Long
Dim lngG As Long
Dim lngB As Long

lngTemp = CLng(Nz(txtColorValue))
lngB = lngTemp \ 256 \ 256
lngG = (lngTemp Mod 65536) \ 256
lngR = lngTemp Mod 256
txtR.Value = CStr(lngR)
txtG.Value = CStr(lngG)
txtB.Value = CStr(lngB)
End Sub

Private Sub cmdGetColor_Click()
txtColorValue.Value = CStr(CLng(Nz(txtB.Value)) * 65536 +
Nz(txtG.Value) * 256 + Nz(txtR.Value))
End Sub
'End code behind form--------

It lets me pick a RGB colors in Paint to obtain background colors and
allows me to add a bit more blue to an existing background color by
splitting, adjusting and recombining.

James A. Fortune

Nov 13 '05 #5

P: n/a
Hi David,
WIth HTML color HEX strings the format is RGB. With a standard Long
value(VB) the bytes are ordered BGR and the upper most byte is not used
or left for Transparency etc.

So the OP cannot use a direct HTML color code to set the relevant Color
pop of the control/form. They would have to use String functions to
seperate the HTML color code into its respective RGB components and then
call the RGB function.
If the OP GoogleGroups search on:
lebans system color constant

They will find a very lengthy thread with more information then they
would ever want to know about color and Windows.
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"David W. Fenton" <dX********@bway.net.invalid> wrote in message
news:Xn**********************************@24.168.1 28.86...
MLH <CR**@NorthState.net> wrote in
news:7p********************************@4ax.com:
I'm wondering if the BackColor property values for
the colors built-in to A97 come from some internationally
recognized standard. I have a list of a hundred or so
colors with hex values and I'm wondering if they are
compatible.


The Hex values are exactly the same as those used in HTML, since
each pair of Hex digits is an R/G/B color.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc


Nov 13 '05 #6

P: n/a
MLH wrote:
I'm wondering if the BackColor property values for
the colors built-in to A97 come from some internationally
recognized standard. I have a list of a hundred or so
colors with hex values and I'm wondering if they are
compatible.


Get a black and white monitor.
const Black = 0
const White = 16777215

job done.

--
[OO=00=OO]
Nov 13 '05 #7

P: n/a
ji********@compumarc.com wrote:
It lets me pick a RGB colors

^
|
omit

I must be tired.

One more note. The form code uses decimal numbers such as 255 12 302
for the RGB values. To convert the numbers to hexadecimal instead use
the Hex() function. To convert from letters to numbers you can do
something like:

Public Function HexByteToDecimal(strValue As String) As Integer
Dim strChar1 As String
Dim strChar2 As String
Dim intChar1 As Integer
Dim intChar2 As Integer

'Input check omitted
HexByteToDecimal = 0
strChar1 = Left(strValue, 1)
strChar2 = Right(strValue, 1)
If IsNumeric(strChar1) Then
intChar1 = CInt(strChar1)
Else
intChar1 = Asc(UCase(strChar1)) - Asc("A") + 10
End If
If IsNumeric(strChar2) Then
intChar2 = CInt(strChar2)
Else
intChar2 = Asc(UCase(strChar2)) - Asc("A") + 10
End If
HexByteToDecimal = intChar1 * 16 + intChar2
End Function

Perhaps there's an API function that does this since it's used so
often. I know a HexFromBin API function exists.

James A. Fortune

Nov 13 '05 #8

P: n/a
MLH
<censored>
Point well taken. I couldn't agree more!
Although I never really decided whether I preferred
green or amber mono's over B/W.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx

Get a black and white monitor.
const Black = 0
const White = 16777215

job done.


Nov 13 '05 #9

P: n/a
MLH
<censored>

On another note, did you happen to take a look at
my color list??? It must have been compiled by someone
more colorblind than I. For crying out loud - of the first 5
color names in the list, I agree with only one - black.

Anywhere I can get a list of named colors that more
accurately reflect the true color? Granted, I have a
hundred or so in the list, but I'd be happy with fewer.
What I'm trying to get are fairly popular vehicle color
names. Now I know that gets into metallic blue and
other such nonsense - lustres and surface properties
rather than true colors. But, I do need a list badly.

And, BTW, do the colors always look the same when
represented on an open form as they do shown on a
report?
Nov 13 '05 #10

P: n/a
MLH wrote:
<censored>

On another note, did you happen to take a look at
my color list??? It must have been compiled by someone
more colorblind than I. For crying out loud - of the first 5
color names in the list, I agree with only one - black.
I've not really used colours and constant names since the DOS days when
I had 16 to play with, now there's 24 million (14 million more than the
average human eye can distinguish).
Anywhere I can get a list of named colors that more
accurately reflect the true color? Granted, I have a
hundred or so in the list, but I'd be happy with fewer.
What I'm trying to get are fairly popular vehicle color
names. Now I know that gets into metallic blue and
other such nonsense - lustres and surface properties
rather than true colors. But, I do need a list badly.
http://msdn.microsoft.com/library/de...MPShapehex.asp
May help a little bit.
And, BTW, do the colors always look the same when
represented on an open form as they do shown on a
report?


Yes, AFAIK.

BTW Ducati don't supply red touch up paint, I was advised to use Ford,
do you know which Ford red best matches Ducati red?

--
[OO=00=OO]
Nov 13 '05 #11

P: n/a
MLH
Is there only 1 shade of ducati red?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

BTW Ducati don't supply red touch up paint, I was advised to use Ford,
do you know which Ford red best matches Ducati red?


Nov 13 '05 #12

P: n/a
MLH
There were a few there. Thx.

http://msdn.microsoft.com/library/de...MPShapehex.asp
May help a little bit.


Nov 13 '05 #13

P: n/a
MLH wrote:
Is there only 1 shade of ducati red?


AFAIK yes. The racing colour.

--
[OO=00=OO]
Nov 13 '05 #14

P: n/a
MLH
My contact at the body shop is s'posed 2B calling
me back. Will let U know what I find out - hey, its
sort-a-related to this thread.
Nov 13 '05 #15

P: n/a
MLH
Ford has 2 that (I think) may be applicable.
Toreador Red (color code FL) and another
(didnt' get the name) code = G2.

I'm getting color match chart & brochure.
Can snail mail if that'll help. Email me offline
& gimme asnailmail PO. Will send.
Nov 13 '05 #16

P: n/a
MLH wrote:
Ford has 2 that (I think) may be applicable.
Toreador Red (color code FL) and another
(didnt' get the name) code = G2.

I'm getting color match chart & brochure.
Can snail mail if that'll help. Email me offline
& gimme asnailmail PO. Will send.


YHM

--
[OO=00=OO]
Nov 13 '05 #17

P: n/a
MLH
I got the color charts with samples.
Toreador Red is very nice. No clue
as to what Ducati looks like. Can
you give me a decent representation
on the web?
Nov 13 '05 #18

P: n/a
MLH wrote:
I got the color charts with samples.
Toreador Red is very nice. No clue
as to what Ducati looks like. Can
you give me a decent representation
on the web?


Same colour as the 999 that usually comes up on the banner here
http://www.ducati.com/

Model after mine but same colour
http://www.mcnews.com.au/Testing/Duc.../Images/10.jpg

My model
http://mysite.mweb.co.za/residents/a.../homepage.html

Mine (slow loading 300+K images @ 256Kb/s ADSL)
http://www2.viasys.co.uk/trevor/images/ducati0002.jpg
http://www2.viasys.co.uk/trevor/images/ducati0003.jpg
http://www2.viasys.co.uk/trevor/images/ducati0004.jpg

--
[OO=00=OO]
Nov 13 '05 #19

P: n/a
MLH
Nice!

Bad news though. The guy was guessing. The Toreador Red is not
even close.
Nov 13 '05 #20

This discussion thread is closed

Replies have been disabled for this discussion.