LJ::color_todb — Takes an #rrggbb value and returns a 24-bit decimal number.
LJ::color_todb(color);
LJ::color_todb
color. scalar; an #rrggbb string.
cgi-bin/ljlib.pl
undef if bogus color, else scalar; 24-bit decimal number, can be up to 8 chars wide as a string.