Brian Dunning's FileMaker Custom Functions

Hex2RGB ( hex ; delimiter ; alert )

Converts hex color codes to decimal RGB

  Average rating: 3.7 (53 votes) Log in to vote

F. Osman Cabi   F. Osman Cabi

Share on Facebook Share on Twitter

  Sample input:
Hex2RGB ( "0CAB10" ; "-" ; "Hex is written wrong" )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Hex2RGB function converts standard hex color codes (generally used in html web sites) into RGB. Hex color codes is form of 6 or 7 (with #) characters. R is first two characters in hex format, G is next two characters in hex format and B is last two characters in hex format. For example "#FF00AA" is converted as decimal RBG as following : (171;205;239)



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.