473,840 Members | 1,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

names for html colors

how can I find out the name of the html color #COFFFF. More specifically I
need to find a way in code to convert any html color to the english name.

ColorTranslator doesn't seem to do it.

Thanks,

T
Mar 11 '06 #1
2 1268
there are only 16 html 4.0 supported color names.
(http://www.w3.org/TR/REC-html40/types.html#h-6.5)

Color names and sRGB values
Black = "#000000" Green = "#008000"

Silver = "#C0C0C0" Lime = "#00FF00"

Gray = "#808080" Olive = "#808000"

White = "#FFFFFF" Yellow = "#FFFF00"

Maroon = "#800000" Navy = "#000080"

Red = "#FF0000" Blue = "#0000FF"

Purple = "#800080" Teal = "#008080"

Fuchsia = "#FF00FF" Aqua = "#00FFFF"

as you can see #COFFFF is not in the list. as there are more than 16 million
unnamed html colors, you are going to find the task difficult to have a
unique name for each color.
-- bruce (sqlwork.com)

"Tina" <ti**********@n ospammeexcite.c om> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
how can I find out the name of the html color #COFFFF. More specifically
I
need to find a way in code to convert any html color to the english name.

ColorTranslator doesn't seem to do it.

Thanks,

T













Mar 11 '06 #2
When I review the attributes of a system.drawing. color object I see about
150 named colors that are all usable with html.
T
"Bruce Barker" <br************ ******@safeco.c om> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
there are only 16 html 4.0 supported color names.
(http://www.w3.org/TR/REC-html40/types.html#h-6.5)

Color names and sRGB values
Black = "#000000" Green = "#008000"

Silver = "#C0C0C0" Lime = "#00FF00"

Gray = "#808080" Olive = "#808000"

White = "#FFFFFF" Yellow = "#FFFF00"

Maroon = "#800000" Navy = "#000080"

Red = "#FF0000" Blue = "#0000FF"

Purple = "#800080" Teal = "#008080"

Fuchsia = "#FF00FF" Aqua = "#00FFFF"

as you can see #COFFFF is not in the list. as there are more than 16
million unnamed html colors, you are going to find the task difficult to
have a unique name for each color.
-- bruce (sqlwork.com)

"Tina" <ti**********@n ospammeexcite.c om> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
how can I find out the name of the html color #COFFFF. More specifically
I
need to find a way in code to convert any html color to the english name.

ColorTranslator doesn't seem to do it.

Thanks,

T


Mar 11 '06 #3

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

Similar topics

4
12023
by: Jeff Seale | last post by:
I just happend to notice that there are very FEW colors that you have to generate using #hex codes. But I was wondering, how many colors have names assigned to them in Tkinter and what are their #hex translations? It'd be nice to know these so I don't accidentally create a color that already has a name.
0
1212
by: Tavish Muldoon | last post by:
Hello, I am working on some web pages and the look should be similar to some other web pages. Viewing the source - I see they are using an Arial font with color=#336699 When I go into the properties and create new lables - I choose the color - but the names listed in VS 2003 for web color are in text -
10
2973
by: dan | last post by:
I have a script that selects a value in an option in a selection list according to how many letters were entered in an input box. I have it working but I am limited to what I can name the form fields because they are dynamically created by a PHP script. I can get it to work with simple name but not with names outputted by the script. Is there a change I can make to the JavaScript so I can use the dynamic names? Simple name =...
4
6240
by: dan | last post by:
I need to use a different type of name for a field in a form. does anyone know how I can access this with this kind of name? <input type="text" name ="id" size="6" maxlength="6" value=""> now how can I access this name in javascript? //this doesn't work?? document.form_name.id.value document.form_name.?????????.value
0
2134
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a larger audience, then. Original message follows: Hello,
6
6165
by: Danny Lesandrini | last post by:
I'm using an Access database to drive a web site and the colors of various table backgrounds are stored in Access. I want users of the Access database to be able to select colors for the site, but my mappings between named colors, HEX values and the Long Integer values used in Access are not jibbing. Anyone have a nice list laying around? Danny J Lesandrini dlesandrini@hotmail.com
2
1076
by: Nalaka | last post by:
Hi.... When I pick colors using the design mode.... it puts c"color names" into the markup. Then in the "HTML mode"... shows a lot of color related errors. How do I get the gui editor to put colors numbers instead (of names)? any help is appreatiated Nalaka
12
2483
by: Zamdrist | last post by:
Been awhile since I've done any significant html work. Was wondering if I need to worry at all about colors and using html safe colors? I can't imagine too many people browsing the web anymore at 256 colors. Thanks, Steve
5
1492
by: randy.buchholz | last post by:
While more experienced users can pretty much tell a color from its hex, new users can't. Named colors do help with consistancy and new developers. Is it possible to create custom named color lists (or other variables) at design time?
0
9699
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
10922
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
10603
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...
1
10660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10301
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7023
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
5874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4076
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3138
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.