1. Use ChatGPT I needed to convert HEX to but I didn't have a clear understanding of how they work. So I asked ChatGPT. While it was easy to fix an edge case where 000 = NaN in CMYK. it's important to always check every edge case and not trust generated code 100%.