CMYK vs RGB: Subtractive vs Additive Color Explained
In graphic design and software development, using an accurate colour code converter is essential because screens and physical printers generate color using completely opposing physics principles:
- RGB (Additive): Used on computer displays, mobile phones, and TVs. Light is emitted directly from pixels. When red, green, and blue combine at 100% intensity, they create white light.
- CMYK (Subtractive): Used in ink printing. Paper reflects ambient light; ink pigments absorb (subtract) certain wavelengths while reflecting others. Combining pure Cyan, Magenta, and Yellow produces a muddy dark tone, so pure Black (Key) is added to provide crisp contrast.
Converting Color Formats: HEX, HSL, HSV, and Decimal
Our online color conversion tool handles complex mathematical transformations across all color spaces:
Convert Red Green Blue to Hex
Each primary channel (0–255) is represented as a base-16 byte: (R << 16) | (G << 8) | B. To calculate rgb to decimal, evaluate $(R \times 65536) + (G \times 256) + B$.
Hex Code to Hue Saturation Lightness
Converting hex code to hue saturation lightness (HSL) maps color onto a cylindrical coordinate system, making it intuitive to adjust tint, shade, and vibrancy dynamically.