names for html colors

T

Tina

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
 
B

Bruce Barker

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)
 
T

Tina

When I review the attributes of a system.drawing.color object I see about
150 named colors that are all usable with html.
T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top