# Color Space Conversion in Production: HEX, RGB, CMYK and HSV Pitfalls

> **TL;DR**: A senior engineering deep dive into color space conversion: gamma-correct blending, sRGB vs CMYK gamut clipping, HSV hue wraparound, and runnable Python/CLI code for design systems and AI-generated palettes.
> **Source**: https://ai.yevrix.com/articles/color-space-conversion-hex-rgb-cmyk-hsv-production-guide

## 1. The real production failure: why one hex code renders three different colors

Almost every design-system team eventually hits this incident shape. The primary color is `#3B82F6`. It is hard-coded into a CSS variable. After launch: iOS looks slightly purple, Android looks brighter, and the printed brand sheet comes out muddy and dark. Nobody typed the wrong value. The hex string was simply **interpreted in different color spaces, u

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/color-space-conversion-hex-rgb-cmyk-hsv-production-guide
