in reply to Color Converstion

If that red is accurate, it appears that microsoft lists its colors in BGR (relentlessly little-endian?).
# my @rgb = reverse unpack 'xCCC', $colornum; #wrong my @rgb = ( $colornum & 255, $colornum >> 8 & 255, $colornum >> 16 & 255 }; my $hex = join '', map {sprintf '%x', $_} @rgb; print "#${hex}";

Update: Oops, corrected code

After Compline,
Zaxo