Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 C# ASP.NET Color convert , +
Actually i using color extender tool to generate the colors....while i'm picking the colors, this tools return only hexadecimal values ...but i need to generate color name too...How to generate color name from this hex or RGB values????
Posted 12-Dec-12 20:19pm
Deenuji3.8K
Edited 12-Dec-12 20:21pm
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You will have to cross reference the RGB values in a lookup table which contains the RECOGNISED colors
  Permalink  
Comments
Deenuji vellore at 13-Dec-12 1:28am
   
yaa. but i need to generate colors name while i'm picking the colors in that table!!!!
Zaf Khan at 13-Dec-12 1:46am
   
Only RECOGNISED colors will be Recognised!
 
If you name a color something like Silver Ribbon or Jet Blue if its not recognised then it wont be of any use because it wont be recognised.
 
You can find recognised colors on W3Schools.com
link: http://www.w3schools.com/html/html_colornames.asp

 
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Deenuji vellore at 13-Dec-12 3:16am
   
it doesn't return the color name........
Suvabrata Roy at 13-Dec-12 3:23am
   
http://stackoverflow.com/questions/7791710/convert-hex-code-to-color-name
 
try this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 Maciej Los 270
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 202
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web03 | 2.8.1411019.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100