473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 1248
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**********@nospammeexcite.com> wrote in message
news:%2****************@TK2MSFTNGP14.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.com> wrote in message
news:eC**************@tk2msftngp13.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**********@nospammeexcite.com> wrote in message
news:%2****************@TK2MSFTNGP14.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
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...
0
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...
10
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...
4
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...
0
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...
6
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...
2
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...
12
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...
5
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.