Brian Dunning's FileMaker Custom Functions

HSLtoRGB ( hueDegrees ; satPercentage ; liPercentage )

Converts color from HSL values to RGB percentages.

  Average rating: 4.4 (28 votes) Log in to vote

Joe Rovang   Joe Rovang

Share on Facebook Share on Twitter

  Sample input:
HSLtoRGB ( 0; 1; .5 ) // red
  Sample output:


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

This function converts the specified color from hue, saturation, and lightness (HSL) to RGB percentages. (Note that HSL is not the same as HSB/HSV!)

While hue is expressed in degrees, all other values are expressed in decimals between 0 and 1, inclusively. To use the output RGB values in a TextColor function, you'd first need to multiply them by 255 and round to whole numbers.



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.