Convert hexadecimal color codes (#RRGGBB and #RGB shorthand) into `rgb(r, g, b)`, `rgba(r, g, b, a)`, `hsl(h, s%, l%)`, and CMYK formats. Includes interactive color swatch and alpha transparency slider.
To convert HEX to RGB, take the two hexadecimal digits for each channel (RR, GG, BB) and convert to base 10 integers (0-255). For example, #FF0000 = rgb(255, 0, 0).
Parses the hex string into 8-bit integers using `parseInt(hexSubstring, 16)`.
8-digit HEX (#RRGGBBAA) includes two trailing characters representing the alpha transparency channel (e.g. `#00000080` is 50% transparent black).