When a stylesheet uses #369 and a design handoff needs explicit channels, convert the shorthand once and verify every representation before reuse. This guide follows one opaque three-channel color from compact CSS notation to full HEX, RGB, and HSL.

Expand the shorthand before reading channels
Start with the sample input #369. A three-digit CSS HEX color stores one hexadecimal digit for red, one for green, and one for blue. To obtain the full form, double each digit: 3 becomes 33, 6 becomes 66, and 9 becomes 99. Therefore #369 expands to #336699, with the channel positions preserved as red, green, blue.
#369
#336699Now read each two-digit pair as a hexadecimal channel. The red pair 33 equals decimal 51, the green pair 66 equals 102, and the blue pair 99 equals 153. These values are all within the inclusive CSS RGB endpoint range 0–255. The expected decimal notation is rgb(51, 102, 153), describing the same opaque color.
Walk the example through HSL
Use the Color Converter with the expanded color or compare the equivalent forms directly. For this example, the HSL result is hsl(210, 50%, 40%). The hue is 210°, while saturation is 50% and lightness is 40%. Keep the degree sign conceptually attached to hue; the percentages belong to saturation and lightness.
#336699
rgb(51, 102, 153)
hsl(210, 50%, 40%)Use the Color Converter to compare #336699, rgb(51, 102, 153), and hsl(210, 50%, 40%). Independently, enter #369 in Hex to RGB and confirm the decimal channels. Then enter 51, 102, and 153 in the corresponding red, green, and blue fields in RGB to HEX. The round-trip should return #336699, even if the stylesheet originally used the shorter form.
Know what this conversion does not cover
This example treats the color as opaque and uses exactly three channels, so no alpha value is silently removed or inferred. CSS colors that include transparency require separate handling. Also, HSL results for other colors may differ slightly because rounding can affect displayed values. These conversions are for screen color notation, not printer-profile simulation or print production matching.
For a reliable handoff, compare notation and channel order rather than trusting appearance alone. The red value must remain first, followed by green and blue; changing positions creates a different color. Preserve the leading # when entering HEX, keep RGB channels as integers, and retain the percent signs in HSL so the notation remains unambiguous.
Checks before replacing a CSS value
- Confirm #369 expands by doubling each digit to #336699.
- Confirm the RGB channels are 51, 102, and 153 in red, green, blue order.
- Confirm the HSL form is hsl(210, 50%, 40%) and the RGB-to-HEX round-trip returns #336699.