CMYK converter added

March 23, 2022
screenshot of converter

CMYK is a tricky one, since each device would interpret the colors differently. Had almost decided not to even include it but thought it could be useful at times. Looking around I found a basic formula that most people were using to give a rough idea for the color. I did try another formula that was too far off. Tring to test with converters was interesting, I tested across 5 different converters and came up with 4 different answers one of them was close the red in Hex and RGB was off by one each time. If I had 51 it was 50 from that converter. And converting from CMYK to the others through tests would sometimes be far off. This is mostly from CMYK is an analog for color where RGB and Hex are all digital, conversions of these should always be the same.

For this one I broke apart the colors to 4 boxes and having the trigger activate on the last one, black (K). For both Hex and RGB it they run through the same converter for CMYK, for Hex once it makes the RGB color it then passes it to a function to then create the CMYK. I prefer to do a formula straight from the color to the other without a convert then convert, but there really isn’t a Hex to CMYK formula out there. Since CMYK is an analog color I also limited it to be 2 after the decimal.

Used this site that has web safe colors to do my testing:
https://www.december.com/html/spec/colorsafecodes.html

Converter App: https://www.lynnamacher.com/converter/

Related Articles

Conversion Iteration #2: Color

Conversion Iteration #2: Color

For iteration #2: I added Hex color to RGB to the conversion app page converter. Hex: This will take the 6-digit hex color only accepting 0-9 and A-F. Then it will convert the Hex to RGB with commas between the 3 color grouping. RGB: For the RGB to Hex the user will...

read more
Measurement Conversion created in JavaScript

Measurement Conversion created in JavaScript

Created my own conversion page, some of the reasons for this, you may have run across these issues also: ton of ads on page and overlay ads; the ads and the converter all look the same; the one that made me decide to create my own was the conversion was wrong. While I...

read more
Using Databases in Python

Using Databases in Python

For my next project I wanted to work with a database in Python. Since databases are used in about every major coding situation I wanted to a project that would be close to a real world project. Spent time in January doing basic exercises/classes with Python with...

read more

Pin It on Pinterest

Share This