Color names vs hex codes

Jan Schenkel janschenkel at
Wed Jan 9 01:02:28 EST 2013

Hi Peter,

Here's the one-liner if you use Quartam Color Library for LiveCode:
put qrtColor_RGBToHex(qrtColor_NameToRGB("AliceBlue")) into tHexColor

Quartam Color Library is free / open source software under the commercial-friendly LGPL license.
You can download it here: <>

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode

"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

From: Peter Haworth <pete at>
To: How to use LiveCode <use-livecode at> 
Sent: Wednesday, January 9, 2013 2:24 AM
Subject: Color names vs hex codes

I have a need to convert a color name form LC's colornames property to its
equivalent hex value, or rgb value.  Can that be done in LC?
lcSQL Software <>
use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list