Pergunta

I need to convert this string into a hex color: '0.047,0.380,0.247,0.900'. It is labeled 'Forrest' and is sent to a mobile device to define a background color. Presumably it is a cmyk color.

Anyone know of a good way to convert this using either php or js/jquery?

Foi útil?

Solução

This site should be able to help you a bit. Just needs a bit of math.

EDIT: Here's a better page: http://www.easyrgb.com/index.php?X=MATH

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top