Finding the closest web-safe colour using .net?

1k views Asked by At

I would like an app that tells me the closest websafe colour to a given RGB or HEX value.

For example, given #FFFF01 or 255,255,1 I'd like to know the closest .net colour is Color.Yellow (255,255,0)

Does anyone know of a good app, or website that will achieve this?

I don't want to convert the colours, I know how to do that. In my code I would like to type Color.Yellow instead of Drawing.Color.FromArgb(255, 255, 1)

1

There are 1 answers

0
Russ Clarke On BEST ANSWER

This one looks more like it:

http://chir.ag/projects/name-that-color/#FFFF01

You type in your HEX color code and it tells you the closest named color.

Here's another one that has source code too:

http://shallowsky.com/colormatch/index.php?hex=ffff01