Color conversion

Log in to Vote
8 Votes • 3 Comments
Instantly convert CMYK to RGB

R = 255 × (1-C) × (1-K)
G = 255 × (1-M) × (1-K)
B = 255 × (1-Y) × (1-K)

K = 1-max(R', G', B')
C = (1-R'-K) / (1-K)
M = (1-G'-K) / (1-K)
Y = (1-B'-K) / (1-K)
• posted 3 years and 10 months ago • type: Goodie (Perl functions) Needs a Developer

This comment has been removed for violation of our forum rules.
posted by <hidden> • 3 years and 10 months ago
My bad, though the current Goodie may still need tiny modifications (you have to write % to convert from CMYK) or keep the <MODE>(VAL, VAL, VAL) syntax. But you are absolutely right.
posted by eavichay 3 years and 10 months ago Link
Was just looking for this! Also hoping to see conversions from HEX to RGB or CMYK. For example, "#00a9d to RGB" would result in "rgb(0,169,210)".

Very handy for designers going back and forth between web and print!
posted by matthewmagellan 3 years and 4 months ago Link