WORKED CASE · SYNTHETIC TEST DATA
Compare the same solid color in RGB and HSL
When moving a design value between CSS formats, first test a primary color whose components are easy to check.
Input and settings
#ff0000Run and interpret
Enter the six-digit hex sample. Red is 255 while green and blue are zero; HSL has zero hue, full saturation and 50% lightness.
Expected output
rgb(255, 0, 0)
hsl(0, 100%, 50%)Scope and possible misuse
Input is six-digit hex, not arbitrary CSS color syntax. CMYK is a simple mathematical approximation without a printer profile, so it is not a print-proof conversion.