Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top