473,654 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Do A97 color number values reflect some recognized standard?

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
19 5765
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
MediumSpringGre en 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
MediumAquamarin e 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
LightGoldenrodY ellow 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
MLH <CR**@NorthStat e.net> wrote in
news:7p******** *************** *********@4ax.c om:
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
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.

xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx x

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
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.
cmdGetColorValu e cmdDecomposeCol or

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

Private Sub cmdDecomposeCol or_Click()
Dim lngTemp As Long
Dim lngR As Long
Dim lngG As Long
Dim lngB As Long

lngTemp = CLng(Nz(txtColo rValue))
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_Cli ck()
txtColorValue.V alue = CStr(CLng(Nz(tx tB.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
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********@bwa y.net.invalid> wrote in message
news:Xn******** *************** ***********@24. 168.128.86...
MLH <CR**@NorthStat e.net> wrote in
news:7p******** *************** *********@4ax.c om:
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
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
ji********@comp umarc.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 HexByteToDecima l(strValue As String) As Integer
Dim strChar1 As String
Dim strChar2 As String
Dim intChar1 As Integer
Dim intChar2 As Integer

'Input check omitted
HexByteToDecima l = 0
strChar1 = Left(strValue, 1)
strChar2 = Right(strValue, 1)
If IsNumeric(strCh ar1) Then
intChar1 = CInt(strChar1)
Else
intChar1 = Asc(UCase(strCh ar1)) - Asc("A") + 10
End If
If IsNumeric(strCh ar2) Then
intChar2 = CInt(strChar2)
Else
intChar2 = Asc(UCase(strCh ar2)) - Asc("A") + 10
End If
HexByteToDecima l = 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
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.

xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxx

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

job done.


Nov 13 '05 #9
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3190
by: Konrad Den Ende | last post by:
I have a function returning a string but the problem is that the color of it is blue which suits me well for some pages but not for others. Is it possible to "feel" what the color of the background in the current document is and set the color of the output accordingly? The background will be an image, in most cases. -- Kindly Konrad
0
1683
by: Dave | last post by:
Hi all, I have a listbox that is complex bound by an arraylist. The problem is that when I delete an object from the arraylist, the listbox does not reflect those changes. I tried refreshing the listbox with no luck and, because it is already bound, I can't just delete the item directly from the listbox without an error (because it already has a datasource, you are not allowed to delete/add anything to the listbox directly). The...
4
25503
by: Mahesh BS | last post by:
Hello, I need to write a query to find out a set of missing number in a given sequence. Eg : a Column in some table has the following data
1
1400
by: xiebopublic | last post by:
Hi all, I know C++ language does not support Java language's "reflect" mechanism. Is there any corresponding C++ component/library for java.lang.reflect? e.g., does Boost support "reflect"? Thanks! Best Regards, Xie, Bo
9
21379
by: clintonb | last post by:
I'm looking for a way to calculate the number of days between two dates using standard C++ functions. Would it be as simple as just using the difftime() function and then dividing that result by the number of seconds in a day? - Clint
2
4767
by: =?Utf-8?B?anVuaW9yLWdlZWtldHRl?= | last post by:
I have seen similar questions posted here but no result for my situation so here goes. I have a fairly new Maxtor OneTouch III Turbo Terabyte external drive (raid) and a new Dell 690 Precision also raid.....on XP. The maxtor was working fine and I was backing up data to it for a couple of months. Then all of a sudden the computer did not recognize it. I tried device manager, uninstalling & reinstalling driver, etc. I tried other USB...
2
5908
by: cypriot | last post by:
Hi. I am developing an application program in java. I use MsAccess for keeping data. I had a problem with sql insert method. public void AddPatient() { String no= numberinput.getText();
11
5812
by: David Mathog | last post by:
Is there a standard compliant method to access the number of elements in an enumerated type in C, either from within the preprocessor or the running program? The example below compiles and runs but returns 4 twice (the number of bytes used to store a value in test) when the needed answer is 5 (the number of enumerated values in atype). #include <stdlib.h> #include <stdio.h>
8
4724
by: remlostime | last post by:
i use g++ to generater rand number, now i find that the RAND_MAX is 32367 in my computer, how can i make a bigger rand number( the number is wihin in the integer(2^32-1))
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1593
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.