문제

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