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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top