Olá Eduardo!
Em um site a cor estará indicada no código fonte da página, ou no
arquivo.xml, ou no arquivo.js ou no arquivo arquivo.css... Você o
reconhecerá pelo "#seguido por uma sequencia de 6 caracteres (letras ou
números)", o código hexadecimal de cores.
Já numa imagem, a maioria dos programas editores de imagem possuem uma
ferramenta chamada pipeta. Ao tocar a imagem no pixel correspondente a cor
desejada ele reconhecerá e dependendo do programa te dará as propriedades
dela, seja em hexadecimal, em RGB ou HSB. No entanto a precisão disso ainda
é relativa, visto que essas pipetas reconhecem por pixel e algumas cores são
compostas pela mistura de varios tons em pixels próximos, (tipo o que se
aprende na escola como "Pontilhismo"), que não são reconhecidos pelo olho
humano pois este acaba por captar o todo.
Eu catei alguma coisa aqui entre os meus e-mails com links sobre cor e
programação web ecoloquei logo abaixo. Eles estão em inglês, mas espero ter
te ajudado.
[]'
Yadeshka
Using Color on Web Pages
Learn the Basics of Web Color
Color on the Web presents a few interesting challenges. For some of the
basic colors, you can simply use the color names (red, blue, green, etc.),
but that doesn't give you the wide range of color options available to
computers. Also, if you use a named color, you risk having it not display
correctly on the Web.
For reference, the named colors:
http://webdesign.about.com/library/bl_namedcolors.htm
Why won't it display? Most computers use a monitor set up to display
256 colors (that is the default). However, Macintosh computers display a
different set of 256 colors than the PC. So, this results in a set of 216
colors that will look (nearly) the same on most monitors. This is called the
Browser Safe Color Palette.
For reference, the browser-safe colors:
http://webdesign.about.com/library/bl_colors.htm
To get back to named colors, if you want to use a color that is not on
the list of color names, you need to use a code, in hexadecimal (Base 16
numbers 0-F). The code is 3 sets of hexadecimal numbers representing the
amount of red, green, and blue (RGB) in the color.